![]() |
Routines |
| Prev: AFDB | Up: Map | Next: B000 |
|
Every handler returns here. It stirs the refresh register into the random byte at $5BA5 -- so the sequence depends on how much work the frame did -- then advances IX by 32 and goes round again until it reaches the font, when the frame is finished.
|
||||
| ret_from_tbl_jp | AFE4 | LD A,R | R changes with every instruction fetched | |
| AFE6 | LD C,A | |||
| AFE7 | LD A,($5BA5) | |||
| AFEA | ADD A,C | |||
| AFEB | LD ($5BA5),A | |||
| AFEE | LD BC,$0020 | 32 bytes per object record | ||
| AFF1 | ADD IX,BC | |||
| AFF3 | PUSH IX | HL = IX | ||
| AFF5 | POP HL | |||
| AFF6 | LD BC,font | the end of the object table is the start of the font | ||
| AFF9 | AND A | |||
| AFFA | SBC HL,BC | |||
| AFFC | JR NC,end_of_frame | |||
| AFFE | JR update_sprite_loop | not there yet | ||
| Prev: AFDB | Up: Map | Next: B000 |