| Data

EF0A: Region identifier tables

Used by the routine at ED36. The first six bytes here are the LSBs of the addresses of the tables that follow at EF10, EF48, EF70, EF98, EFC0 and EFE8.
EF0A | DEFB $10 | LSB of EF10
EF0B | DEFB $48 | LSB of EF48
EF0C | DEFB $70 | LSB of EF70
EF0D | DEFB $98 | LSB of EF98
EF0E | DEFB $C0 | LSB of EFC0
EF0F | DEFB $E8 | LSB of EFE8
Each of the six tables that follow corresponds to a range of y-coordinates in the play area. Each 4-byte entry in those tables corresponds to a range of x-coordinates:
Byte | Meaning
--- | ---
1 | x-coordinate upper bound
2 | Location identifier
3 | x-coordinate of the top of the staircase going down
4 | x-coordinate of the bottom of the staircase going up
The first table corresponds to y-coordinates 32 and 33 (shops and doorsteps).
EF10 | DEFB $07,$14,$00,$00 | 0<=x<=6: Left-hand shop under the apartments next to no. 74
EF14 | DEFB $0F,$50,$0C,$0C | 7<=x<=14: Stairwell of the apartment building next to no. 74
EF18 | DEFB $17,$24,$10,$10 | 15<=x<=22: Right-hand shop under the apartments next to no. 74
EF1C | DEFB $37,$80,$2B,$2B | 23<=x<=54: No. 74
EF20 | DEFB $67,$90,$4D,$4D | 55<=x<=102: Hotel
EF24 | DEFB $77,$A0,$73,$73 | 103<=x<=118: No. 31
EF28 | DEFB $97,$60,$8A,$8A | 119<=x<=150: Police station
EF2C | DEFB $9F,$70,$9C,$9C | 151<=x<=158: No. 27
EF30 | DEFB $CF,$F0,$C4,$C4 | 159<=x<=206: Apartment building next to no. 19
EF34 | DEFB $DF,$B0,$D3,$D3 | 207<=x<=222: No. 19
EF38 | DEFB $E7,$34,$E0,$E0 | 223<=x<=230: Shop under no. 17
EF3C | DEFB $EF,$C0,$EC,$EC | 231<=x<=238: No. 17 (door)
EF40 | DEFB $F7,$44,$F0,$F0 | 239<=x<=246: Shop under no. 15
EF44 | DEFB $FF,$E0,$FC,$FC | 247<=x<=254: No. 15 (door)
The next table corresponds to y-coordinates 26-31 (first floor).
EF48 | DEFB $17,$54,$0C,$0D | 0<=x<=22: Apartment building next to no. 74
EF4C | DEFB $37,$84,$2B,$2B | 23<=x<=54: No. 74
EF50 | DEFB $67,$94,$4C,$4D | 55<=x<=102: Hotel
EF54 | DEFB $77,$A4,$73,$73 | 103<=x<=118: No. 31
EF58 | DEFB $96,$64,$8A,$89 | 119<=x<=149: Police station
EF5C | DEFB $9F,$74,$9C,$9B | 150<=x<=158: No. 27
EF60 | DEFB $CF,$F4,$C4,$C5 | 159<=x<=206: Apartment building next to no. 19
EF64 | DEFB $DF,$B4,$D3,$D3 | 207<=x<=222: No. 19
EF68 | DEFB $EF,$C4,$EC,$EB | 223<=x<=238: No. 17
EF6C | DEFB $FF,$E4,$FC,$FB | 238<=x<=254: No. 15
The next table corresponds to y-coordinates 20-25 (second floor).
EF70 | DEFB $17,$56,$0B,$0D | 0<=x<=22: Apartment building next to no. 74
EF74 | DEFB $37,$86,$2B,$2A | 23<=x<=54: No. 74
EF78 | DEFB $67,$96,$51,$59 | 55<=x<=102: Hotel
EF7C | DEFB $77,$A6,$73,$72 | 103<=x<=118: No. 31
EF80 | DEFB $96,$66,$89,$89 | 119<=x<=149: Police station
EF84 | DEFB $9F,$76,$99,$9A | 150<=x<=158: No. 27
EF88 | DEFB $CF,$F6,$C3,$C5 | 159<=x<=206: Apartment building next to no. 19
EF8C | DEFB $DF,$B6,$D3,$D2 | 207<=x<=222: No. 19
EF90 | DEFB $EF,$C6,$E9,$EA | 223<=x<=238: No. 17
EF94 | DEFB $FF,$E6,$F9,$FA | 238<=x<=254: No. 15
The next table corresponds to y-coordinates 14-19 (third floor).
EF98 | DEFB $17,$58,$0B,$0D | 0<=x<=22: Apartment building next to no. 74 (third floor)
EF9C | DEFB $37,$88,$2C,$2C | 23<=x<=54: No. 74 (third floor)
EFA0 | DEFB $67,$98,$58,$44 | 55<=x<=102: Hotel (third floor)
EFA4 | DEFB $77,$A8,$74,$74 | 103<=x<=118: No. 31 (top floor)
EFA8 | DEFB $96,$68,$89,$89 | 119<=x<=149: Police station (third floor)
EFAC | DEFB $9F,$78,$9C,$9B | 150<=x<=158: No. 27 (third floor)
EFB0 | DEFB $CF,$F8,$C3,$C5 | 159<=x<=206: Apartment building next to no. 19 (third floor)
EFB4 | DEFB $DF,$B8,$D4,$D4 | 207<=x<=222: No. 19 (top floor)
EFB8 | DEFB $EF,$C8,$EC,$EB | 223<=x<=238: No. 17 (third floor)
EFBC | DEFB $FF,$E8,$FC,$FB | 238<=x<=254: No. 15 (third floor)
The next table corresponds to y-coordinates 8-13.
EFC0 | DEFB $27,$5A,$0B,$0D | 0<=x<=38: Apartment building next to no. 74 (top floor), through the catwalk, into the room at the top left of no. 74
EFC4 | DEFB $37,$8A,$2A,$38 | 39<=x<=54: No. 74 (top floor, right-hand side)
EFC8 | DEFB $67,$9A,$45,$59 | 55<=x<=102: Hotel (fourth floor)
EFCC | DEFB $77,$AA,$72,$74 | 103<=x<=118: No. 31 (roof)
EFD0 | DEFB $96,$6A,$89,$89 | 119<=x<=149: Police station (top floor)
EFD4 | DEFB $9F,$7A,$99,$9A | 150<=x<=158: No. 27 (top floor)
EFD8 | DEFB $CF,$FA,$C3,$C5 | 159<=x<=206: Apartment building next to no. 19 (top floor)
EFDC | DEFB $DF,$BA,$D2,$E1 | 207<=x<=222: No. 19 (roof)
EFE0 | DEFB $EF,$CA,$E9,$EA | 223<=x<=238: No. 17 (top floor)
EFE4 | DEFB $FF,$EA,$F9,$FA | 238<=x<=254: No. 15 (top floor)
The next table corresponds to y-coordinates 2-7.
EFE8 | DEFB $17,$5C,$0B,$14 | 0<=x<=22: Apartment building next to no. 74 (roof)
EFEC | DEFB $67,$9C,$58,$9D | 23<=x<=102: No. 74 (roof) and hotel (top floor)
EFF0 | DEFB $96,$6C,$89,$93 | 103<=x<=149: Police station (roof)
EFF4 | DEFB $9F,$7C,$9C,$97 | 150<=x<=158: No. 27 (roof)
EFF8 | DEFB $CF,$FC,$C3,$B6 | 159<=x<=206: Apartment building next to no. 19 (roof)
EFFC | DEFB $FF,$CC,$EC,$E2 | 207<=x<=254: No. 17 (roof) and no. 15 (roof)