Prev: 24384 Up: Map Next: 24448
24403: Create Game Window
Blank the screen and write the banner.
CreateWindow 24403 XOR A Set the border to black.
24404 OUT (254),A
24406 CALL ResetAttributes Call ResetAttributes.
24409 CALL ResetScreen Call ResetScreen.
24412 CALL PrintBanner Call PrintBanner.
Set the attributes for the 1UP lives graphic.
24415 LD HL,22536 HL=22536 (attribute buffer).
24418 LD A,71 A=71.
24420 LD (HL),A Write A to HL.
24421 INC HL Increment HL by one.
24422 LD (HL),A Write A to HL.
Set the attributes for the 2UP lives graphic.
24423 LD HL,22550 HL=22550 (attribute buffer).
24426 LD (HL),A Write A to HL.
24427 INC HL Increment HL by one.
24428 LD (HL),A Write A to HL.
Set the attributes for the score line (the whole line is INK:70).
24429 LD HL,22560 HL=22560 (attribute buffer).
24432 LD BC,8262 BC=counter:32 INK:70.
CreateWindow_Loop 24435 LD (HL),C Write 70 to the attribute buffer.
24436 INC L Move onto the next column.
24437 DJNZ CreateWindow_Loop Decrease counter by one and loop back to CreateWindow_Loop until counter is zero.
24439 CALL Score_1UP Call Score_1UP.
24442 CALL Score_2UP Call Score_2UP.
24445 JP Score_HI Jump to Score_HI.
Prev: 24384 Up: Map Next: 24448