![]() |
Routines |
| Prev: 65225 | Up: Map | Next: 65363 |
|
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 | 65333 | PUSH HL | ||||||
| 65334 | LD HL,(23645) | |||||||
| 65337 | EX (SP),HL | |||||||
| 65338 | LD (23645),HL | |||||||
| 65341 | CALL 10418 | |||||||
| 65344 | EX (SP),HL | |||||||
| 65345 | LD (23645),HL | |||||||
| 65348 | POP HL | |||||||
| 65349 | JR C,MatchString_LookUpVariable_0 | |||||||
| 65351 | INC HL | |||||||
| 65352 | LD C,(HL) | |||||||
| 65353 | INC HL | |||||||
| 65354 | LD B,(HL) | |||||||
| 65355 | INC HL | |||||||
| 65356 | LD A,B | |||||||
| 65357 | OR C | |||||||
| 65358 | RET | |||||||
| MatchString_LookUpVariable_0 | 65359 | EI | ||||||
| 65360 | RST 8 | |||||||
| 65361 | DEFB 1 | Error code for the RST 8 above. | ||||||
| 65362 | DEFB 0 | |||||||
| Prev: 65225 | Up: Map | Next: 65363 |