Routines |
Prev: 48397 | Up: Map | Next: 48521 |
Used by the routine at StartGame.
|
||||
48456 | LD IX,49863 | IX=49863. | ||
48460 | LD A,(IX+7) | A=*IX+7. | ||
48463 | XOR %01000000 | Reset bits 6. | ||
48465 | BIT 6,A | Test bit 6 of A. | ||
48467 | LD (IX+7),A | Write A to *IX+7. | ||
48470 | RET NZ | Return if bit 6 of A is set. | ||
48471 | LD A,(IX+0) | A=*IX+0. | ||
48474 | LD HL,49782 | HL=49782. | ||
48477 | ADD A,(HL) | A+=*HL. | ||
48478 | LD HL,49791 | HL=49791. | ||
48481 | CP (HL) | Jump to 48488 if A is equal to *HL. | ||
48482 | JR Z,48488 | |||
48484 | CALL 49187 | Call 49187. | ||
48487 | RET | Return. | ||
48488 | LD BC,1 | BC=0001. | ||
48491 | LD HL,(49789) | HL=*49789. | ||
48494 | AND A | Set flags. | ||
48495 | SBC HL,BC | HL-=BC. | ||
48497 | LD (49789),HL | Write HL to *49789. | ||
48500 | RET NZ | Return if {} is not zero. | ||
48501 | LD HL,(49787) | HL=*49787. | ||
48504 | LD (49789),HL | Write HL to *49789. | ||
48507 | LD HL,49785 | HL=49785. | ||
48510 | CP (HL) | Return if A is higher than *HL. | ||
48511 | RET NC | |||
48512 | LD A,(49791) | A=*49791. | ||
48515 | ADD A,4 | A+=4. | ||
48517 | LD (49791),A | Write A to *49791. | ||
48520 | RET | Return. |
Prev: 48397 | Up: Map | Next: 48521 |