Routines
| Prev: C493 | Up: Map | Next: C4D1 |
C4B2: Set the indirect object's requirement from the parsed words
|
||||||||||||
| C4B2 | XOR A | A = 0: no indirect object | ||||||||||
| C4B3 | LD HL,$A01D | Point HL at $A01D in "Game variables" - Verb flag $A01D bit 2 (takes an indirect object)? | ||||||||||
| C4B6 | BIT 2,(HL) | Test bit 2 of the byte at $A01D in "Game variables" | ||||||||||
| C4B8 | JR Z,$C4CD | No: requirement code 0 | ||||||||||
| C4BA | LD A,$04 | Load A with $04 - Bit 6 set (TAKE TO)?: code 4 | ||||||||||
| C4BC | BIT 6,(HL) | Test bit 6 of the byte at $A01D in "Game variables" | ||||||||||
| C4BE | JR NZ,$C4CD | If bit 6 of the byte at $A01D in "Game variables" is set, skip ahead to C4CD | ||||||||||
| C4C0 | LD A,($A01E) | Read $A01E in "Game variables" into A - $A01E bits 0-1 both set (the object is a number)?: code 5 | ||||||||||
| C4C3 | AND $03 | Keep only bits 0, 1 of A (mask $03) | ||||||||||
| C4C5 | CP $03 | Compare A with $03 | ||||||||||
| C4C7 | LD A,$05 | Load A with $05 | ||||||||||
| C4C9 | JR Z,$C4CD | If A equals $03, skip ahead to C4CD | ||||||||||
| C4CB | LD A,$07 | Otherwise code 7 (a thing that must be here) | ||||||||||
| C4CD | LD ($A010),A | Store A in $A010 in "Game variables" - Store as $A010 | ||||||||||
| C4D0 | RET | Return to the caller | ||||||||||
| Prev: C493 | Up: Map | Next: C4D1 |