![]() |
Routines |
| Prev: E52C | Up: Map | Next: E581 |
|
The blitter for the one-byte-wide pieces that climb to the left at shift 0: directions 5, 6, 12 and 13 here, and the wall direction 15 at blit_mirror_one + 1 (skipping the DEC L). Each popped byte is mirrored through the bit-reversed table at bit_reverse_table on its way to the screen; one byte a row, two rows a POP. The right-climbing twin is the blitter at blit_one, which the code map left as data.
|
||||||||||||
| blit_mirror_one | E55B | DEC L | Step left into the piece's column | |||||||||
| E55C | LD B,$F9 | B' holds the table's page; B the count | ||||||||||
| E55E | EXX | |||||||||||
| E55F | LD B,A | |||||||||||
| blit_mirror_one_0 | E560 | EXX | Pop two bytes: the first, mirrored, then up a row | |||||||||
| E561 | POP DE | |||||||||||
| E562 | LD C,E | |||||||||||
| E563 | LD A,(BC) | |||||||||||
| E564 | LD (HL),A | |||||||||||
| E565 | DEC H | |||||||||||
| E566 | LD C,D | The second, mirrored, then up a row | ||||||||||
| E567 | LD A,(BC) | |||||||||||
| E568 | LD (HL),A | |||||||||||
| E569 | DEC H | |||||||||||
| E56A | LD A,H | Into the next character row up if this one is done | ||||||||||
| E56B | INC A | |||||||||||
| E56C | AND $07 | |||||||||||
| E56E | JR NZ,blit_mirror_one_1 | |||||||||||
| E570 | LD A,L | |||||||||||
| E571 | SUB $20 | |||||||||||
| E573 | LD L,A | |||||||||||
| E574 | JR C,blit_mirror_one_1 | |||||||||||
| E576 | LD A,H | |||||||||||
| E577 | ADD A,$08 | |||||||||||
| E579 | LD H,A | |||||||||||
| blit_mirror_one_1 | E57A | EXX | The next pair of rows | |||||||||
| E57B | DJNZ blit_mirror_one_0 | |||||||||||
| E57D | EXX | Leave HL as the column for the next piece (after_step_drawn) | ||||||||||
| E57E | JP after_step_drawn | |||||||||||
| Prev: E52C | Up: Map | Next: E581 |