![]() |
Routines |
| Prev: 39051 | Up: Map | Next: 39123 |
|
Sets all of the bytes of an entity to zero, using the stack.
|
||||||||
| ClearEntity | 39086 | PUSH IX | Copy the address of the entity into HL (using the stack). | |||||
| 39088 | POP HL | |||||||
| 39089 | LD DE,38 | DE is 38 the size of an entity. | ||||||
| 39092 | ADD HL,DE | Point HL at the end of the entity. | ||||||
| 39093 | LD (39120),SP | Save the stack pointer in the operand of the instruction at 39119. | ||||||
| 39097 | LD SP,HL | Point the stack at the end of the entity. | ||||||
| 39098 | LD E,0 | DE is 0. | ||||||
| 39100 | PUSH DE | Write 0 to the 38 bytes of the entity, 2 bytes at a time. | ||||||
| 39101 | PUSH DE | |||||||
| 39102 | PUSH DE | |||||||
| 39103 | PUSH DE | |||||||
| 39104 | PUSH DE | |||||||
| 39105 | PUSH DE | |||||||
| 39106 | PUSH DE | |||||||
| 39107 | PUSH DE | |||||||
| 39108 | PUSH DE | |||||||
| 39109 | PUSH DE | |||||||
| 39110 | PUSH DE | |||||||
| 39111 | PUSH DE | |||||||
| 39112 | PUSH DE | |||||||
| 39113 | PUSH DE | |||||||
| 39114 | PUSH DE | |||||||
| 39115 | PUSH DE | |||||||
| 39116 | PUSH DE | |||||||
| 39117 | PUSH DE | |||||||
| 39118 | PUSH DE | |||||||
| 39119 | LD SP,0 | Restore the stack pointer. | ||||||
| 39122 | RET | Return. | ||||||
| Prev: 39051 | Up: Map | Next: 39123 |