![]() |
Routines |
| Prev: C2F8 | Up: Map | Next: C349 |
|
Used by the routine at C349.
|
||||||||
|
Check through data sets at 7C00 to see if any doors (item type number = 2) need setting up
Get one of the 16-byte room item data sets (at 7C00) and copy it across to a working data buffer at EB43:
|
||||||||
| C32D | LD DE,$EB43 | Working buffer address pointer | ||||||
| C330 | LD B,$10 | 16 bytes to copy over | ||||||
| C332 | LD ($EABE),HL | Store address pointer to item data set (at 7C00) | ||||||
| C335 | LD A,(HL) | Copy byte across | ||||||
| C336 | LD (DE),A | |||||||
| C337 | INC DE | |||||||
| C338 | INC HL | |||||||
| C339 | DJNZ $C335 | Repeat for 16 bytes | ||||||
|
Check if the data set is door data
|
||||||||
| C33B | LD A,($EB43) | First byte of the data bank indicates the type of graphic | ||||||
| C33E | CP $FF | |||||||
| C340 | JP Z,$C42A | If it's 255 it means no more data to deal with | ||||||
| C343 | CP $02 | Is this data for a door (item type = 2)? | ||||||
| C345 | JR Z,$C349 | |||||||
| C347 | JR $C32D | If not, check the next set | ||||||
| Prev: C2F8 | Up: Map | Next: C349 |