Chase H.Q. | Routines |
Prev: 8DF9 | Up: Map | Next: 8E42 |
|
||||
fill_attributes | 8E29 | LD HL,$5901 | Screen attribute position (1,8) | |
8E2C | LD B,$00 | Clear B for C to be set in a moment | ||
8E2E | LD A,$10 | 16 rows of attributes | ||
fill_attributes_0 | 8E30 | LD D,H | Destination address | |
8E31 | LD E,L | |||
8E32 | LD C,$1C | 28 bytes to copy (why isn't this 29?) | ||
8E34 | INC E | Dest++ | ||
8E35 | LDIR | Fill by 'rolling' | ||
8E37 | INC HL | Skip four (32 wide - 28) | ||
8E38 | INC HL | |||
8E39 | INC HL | |||
8E3A | INC HL | |||
8E3B | DEC A | Row counter-- | ||
8E3C | JR NZ,fill_attributes_0 | Loop until it hits zero | ||
8E3E | LD ($A231),A | transition_control = 0 | ||
8E41 | RET | Return |
Prev: 8DF9 | Up: Map | Next: 8E42 |