Prev: 29978 Up: Map Next: 30031
30005: Print "Demo Mode"
Used by the routines at 29025, InitialiseNewGame and 30423.
PrintDemoMode 30005 LD A,(30765) Jump to NotDemoMode if the game is not in "demo mode" (the high-order byte of ControlMethod_Pointer does not contain 115).
30008 CP 115
30010 JR NZ,NotDemoMode
Print the "DEMO MODE-PRESS A KEY TO PLAY" messaging in the footer.
demo-mode
30012 LD A,130 A=130 (INK: RED, PAPER: BLACK FLASH: ON).
30014 LD HL,47718 HL=Messaging_DemoMode.
30017 JP PrintFooterColourString Jump to PrintFooterColourString.
If this is not demo mode then set the attributes to INK: BLACK, PAPER: BLACK where it would normally display the demo mode footer messaging.
NotDemoMode 30020 LD HL,23264 HL=23264 (footer attribute buffer location).
30023 LD B,32 B=32.
NotDemoMode_Loop 30025 LD (HL),0 Write 0 to *HL.
30027 INC L Increment L by one.
30028 DJNZ NotDemoMode_Loop Decrease counter by one and loop back to NotDemoMode_Loop until counter is zero.
30030 RET Return.
Prev: 29978 Up: Map Next: 30031