Prev: 27223 Up: Map Next: 27360
27310: FADE_AND_CLEAR_SCREEN
Used by the routines at SET_DEFAULTS, MAIN_MENU_STARTGAME_SELECTED and L27555.
FADE_AND_CLEAR_SCREEN 27310 LD B,7
FADE_AND_CLEAR_SCREEN_0 27312 PUSH BC
27313 LD HL,22528
27316 LD BC,768
FADE_AND_CLEAR_SCREEN_1 27319 LD A,(HL)
27320 CP 64
27322 JP Z,FADE_AND_CLEAR_SCREEN_2
27325 DEC A
27326 LD (HL),A
FADE_AND_CLEAR_SCREEN_2 27327 INC HL
27328 DEC BC
27329 LD A,C
27330 OR B
27331 JP NZ,FADE_AND_CLEAR_SCREEN_1
27334 HALT
27335 HALT
27336 POP BC
27337 DJNZ FADE_AND_CLEAR_SCREEN_0
27339 LD HL,16384
27342 LD DE,16385
27345 LD BC,6144
27348 LD (HL),0
27350 LDIR
27352 LD (HL),71
27354 LD BC,767
27357 LDIR
27359 RET
Prev: 27223 Up: Map Next: 27360