| Prev: 6EAB | Up: Map | Next: 6EC8 |
6EBC: Write object entry to set
|
Writes a 3-byte object entry at the current position. If replacing the end-of-set marker, writes a new end marker after the entry.
|
||||||||||||||||
| write_object_to_set | 6EBC | LD (HL),C | Write 3-byte entry: [C, B, D] = [X, Y_offset, type]. | |||||||||||||
| 6EBD | INC HL | |||||||||||||||
| 6EBE | LD (HL),B | |||||||||||||||
| 6EBF | INC HL | |||||||||||||||
| 6EC0 | LD (HL),D | |||||||||||||||
| 6EC1 | CP $FF | If replacing end marker, write new $FF marker after entry. | ||||||||||||||
| 6EC3 | RET NZ | |||||||||||||||
| 6EC4 | INC HL | |||||||||||||||
| 6EC5 | LD (HL),$FF | |||||||||||||||
| 6EC7 | RET | |||||||||||||||
| Prev: 6EAB | Up: Map | Next: 6EC8 |