Routines |
Prev: BD0D | Up: Map | Next: BD89 |
Used by the routine at StartGame.
|
||||
BD48 | LD IX,$C2C7 | IX=C2C7. | ||
BD4C | LD A,(IX+$07) | A=*IX+07. | ||
BD4F | XOR %01000000 | Reset bits 6. | ||
BD51 | BIT 6,A | Test bit 6 of A. | ||
BD53 | LD (IX+$07),A | Write A to *IX+07. | ||
BD56 | RET NZ | Return if bit 6 of A is set. | ||
BD57 | LD A,(IX+$00) | A=*IX+00. | ||
BD5A | LD HL,$C276 | HL=C276. | ||
BD5D | ADD A,(HL) | A+=*HL. | ||
BD5E | LD HL,$C27F | HL=C27F. | ||
BD61 | CP (HL) | Jump to BD68 if A is equal to *HL. | ||
BD62 | JR Z,$BD68 | |||
BD64 | CALL $C023 | Call C023. | ||
BD67 | RET | Return. | ||
BD68 | LD BC,$0001 | BC=0001. | ||
BD6B | LD HL,($C27D) | HL=*C27D. | ||
BD6E | AND A | Set flags. | ||
BD6F | SBC HL,BC | HL-=BC. | ||
BD71 | LD ($C27D),HL | Write HL to *C27D. | ||
BD74 | RET NZ | Return if {} is not zero. | ||
BD75 | LD HL,($C27B) | HL=*C27B. | ||
BD78 | LD ($C27D),HL | Write HL to *C27D. | ||
BD7B | LD HL,$C279 | HL=C279. | ||
BD7E | CP (HL) | Return if A is higher than *HL. | ||
BD7F | RET NC | |||
BD80 | LD A,($C27F) | A=*C27F. | ||
BD83 | ADD A,$04 | A+=04. | ||
BD85 | LD ($C27F),A | Write A to *C27F. | ||
BD88 | RET | Return. |
Prev: BD0D | Up: Map | Next: BD89 |