![]() |
Routines |
| Prev: FEC9 | Up: Map | Next: FF53 |
|
Used by the routines at PrintString and MatchString.
Calls LOOK-VARS for the name pointed to by HL. Returns with the zero flag set if the variable is missing or empty; else HL points to the string body and BC holds its length.
|
||||||||
| MatchString_LookUpVariable | FF35 | PUSH HL | ||||||
| FF36 | LD HL,($5C5D) | |||||||
| FF39 | EX (SP),HL | |||||||
| FF3A | LD ($5C5D),HL | |||||||
| FF3D | CALL $28B2 | |||||||
| FF40 | EX (SP),HL | |||||||
| FF41 | LD ($5C5D),HL | |||||||
| FF44 | POP HL | |||||||
| FF45 | JR C,MatchString_LookUpVariable_0 | |||||||
| FF47 | INC HL | |||||||
| FF48 | LD C,(HL) | |||||||
| FF49 | INC HL | |||||||
| FF4A | LD B,(HL) | |||||||
| FF4B | INC HL | |||||||
| FF4C | LD A,B | |||||||
| FF4D | OR C | |||||||
| FF4E | RET | |||||||
| MatchString_LookUpVariable_0 | FF4F | EI | ||||||
| FF50 | RST $08 | |||||||
| FF51 | DEFB $01 | Error code for the RST 08 above. | ||||||
| FF52 | DEFB $00 | |||||||
| Prev: FEC9 | Up: Map | Next: FF53 |