![]() |
Routines |
| Prev: E48B | Up: Map | Next: E4CF |
|
The blitter for the two-byte-wide slopes shifted by 2, 4 or 6 pixels, which are three bytes wide: directions 1 and 8, entered at the second INC L (the first is not used by the tables). Each pair of rows is three POPs: a row left to right, up a row, a row right to left; about 125 T-states a pair.
|
||||||||||||
| blit_three | E4A7 | INC L | Step right into the column; B counts the pairs of rows | |||||||||
| E4A8 | INC L | |||||||||||
| E4A9 | INC L | |||||||||||
| E4AA | LD B,A | |||||||||||
| blit_three_0 | E4AB | POP DE | Pop two bytes: the row's first two, left to right | |||||||||
| E4AC | LD (HL),E | |||||||||||
| E4AD | INC L | |||||||||||
| E4AE | LD (HL),D | |||||||||||
| E4AF | INC L | |||||||||||
| E4B0 | POP DE | Pop two more: the row's third byte; up a row; the next row's right-hand byte | ||||||||||
| E4B1 | LD (HL),E | |||||||||||
| E4B2 | DEC H | |||||||||||
| E4B3 | LD (HL),D | |||||||||||
| E4B4 | DEC L | |||||||||||
| E4B5 | POP DE | Pop two more: that row's other two bytes, right to left; up a row | ||||||||||
| E4B6 | LD (HL),E | |||||||||||
| E4B7 | DEC L | |||||||||||
| E4B8 | LD (HL),D | |||||||||||
| E4B9 | DEC H | |||||||||||
| E4BA | LD A,H | Into the next character row up if this one is done; the next pair; leave HL as the column for the next step | ||||||||||
| E4BB | INC A | |||||||||||
| E4BC | AND $07 | |||||||||||
| E4BE | JR NZ,blit_three_1 | |||||||||||
| E4C0 | LD A,L | |||||||||||
| E4C1 | SUB $20 | |||||||||||
| E4C3 | LD L,A | |||||||||||
| E4C4 | JR C,blit_three_1 | |||||||||||
| E4C6 | LD A,H | |||||||||||
| E4C7 | ADD A,$08 | |||||||||||
| E4C9 | LD H,A | |||||||||||
| blit_three_1 | E4CA | DJNZ blit_three_0 | ||||||||||
| E4CC | JP after_step_drawn | |||||||||||
| Prev: E48B | Up: Map | Next: E4CF |