Prev: 38725 Up: Map Next: 38795
38749: Display "PRESS SPACE OR FIRE TO CONTINUE" window and wait for space / fire
Used by the routines at 29800, 29880, 30222, 30540, 30602, 31370, 32035, 32876, 34350, 34768, 35101 and 35141.
38749 CALL 38124 Play hiss-type sound
38752 LD A,14 Draw window 14...
38754 CALL 36987 ...
38757 LD HL,43166 Point HL at "PRESS SPACE OR FIRE" text string
38760 CALL 36725 Print the text
38763 XOR A Clear last pressed key (LAST K system variable)...
38764 LD (23560),A ...
38767 CALL 37876 Capture keyboard / joystick input into A
38770 BIT 4,A If fire-pressed flag is set...
38772 JR NZ,38788 ...jump to 38788
38774 LD A,(23560) Load A with last key pressed (LAST K system variable)
38777 CP 32 If not a space then...
38779 JR NZ,38763 Go back to start of loop
38781 CALL 37472 Wait for keyboard to be released
38784 CALL 38075 Play upward scale sound
38787 RET Return
38788 CALL 37486 Wait for fire button / key to be released
38791 CALL 38075 Play upward scale sound
38794 RET Return
Prev: 38725 Up: Map Next: 38795