![]() |
Routines |
Prev: 44262 | Up: Map | Next: 44338 |
Used by the routine at Handler_UserInput.
|
||||
44283 | PUSH HL | Stash HL, DE and BC on the stack. | ||
44284 | PUSH DE | |||
44285 | PUSH BC | |||
44286 | PUSH IX | Stash IX on the stack. | ||
44288 | LD HL,(42950) | HL=*42950. | ||
44291 | LD C,0 | C=0. | ||
44293 | JR 44308 | Jump to 44308. | ||
44295 | LD E,B | E=B. | ||
44296 | LD D,0 | D=0. | ||
44298 | ADD HL,DE | HL+=DE. | ||
44299 | LD A,(HL) | A=*HL. | ||
44300 | CP 44 | Compare A with 44. | ||
44302 | JR Z,44307 | Jump to 44307 if A is equal to 44. | ||
44304 | INC C | Increment C by one. | ||
44305 | JR 44308 | Jump to 44308. | ||
44307 | INC HL | Increment HL by one. | ||
44308 | LD A,(HL) | A=*HL. | ||
44309 | CP 255 | Compare A with 255. | ||
44311 | JR Z,44332 | Jump to 44332 if A is equal to 255. | ||
44313 | LD IX,43055 | IX=43055. | ||
44317 | LD B,4 | B=4. | ||
44319 | LD A,(IX+0) | A=*IX+0. | ||
44322 | CP (HL) | Compare A with *HL. | ||
44323 | JR NZ,44295 | Jump to 44295 if A is not equal to *HL. | ||
44325 | INC HL | Increment HL by one. | ||
44326 | INC IX | Increment IX by one. | ||
44328 | DJNZ 44319 | Decrease counter by one and loop back to 44319 until counter is zero. | ||
44330 | LD A,C | A=C. | ||
44331 | SCF | Set the carry flag. | ||
44332 | POP IX | Restore IX from the stack. | ||
44334 | POP BC | Restore BC, DE and HL from the stack. | ||
44335 | POP DE | |||
44336 | POP HL | |||
44337 | RET | Return. |
Prev: 44262 | Up: Map | Next: 44338 |