![]() |
Routines |
| Prev: 43143 | Up: Map | Next: 43341 |
|
Used by the routines at PrintTextToken and 43341.
Reads the format byte and copies its four data bytes into the buffer, stopping when the type is 15.
|
||||||||||
|
Extract the format type and copy format data to the buffer.
|
||||||||||
| ProcessTextTokenFormat | 43311 | LD A,(HL) | Read the format byte. | |||||||
| 43312 | AND %00001111 | Extract the format type. | ||||||||
| 43314 | CP 15 | Return when the format type is 15. | ||||||||
| 43316 | RET Z | |||||||||
|
Calculate the table offset for this format type (multiply by 4).
|
||||||||||
| 43317 | RLCA | Multiply by 4 to get the table offset. | ||||||||
| 43318 | RLCA | |||||||||
| 43319 | LD L,A | Set HL to the offset value (L=A, H=0). | ||||||||
| 43320 | LD H,0 | |||||||||
| 43322 | LD BC,43100 | Use the format data at Table_FormatData. | ||||||||
| 43325 | ADD HL,BC | |||||||||
| 43326 | LD B,4 | |||||||||
| ProcessTextTokenFormat_CopyLoop | 43328 | LD A,(HL) | Store the record's flag byte. | |||||||
| 43329 | INC HL | |||||||||
| 43330 | LD (IX+0),A | |||||||||
| 43333 | INC IX | |||||||||
| 43335 | DJNZ ProcessTextTokenFormat_CopyLoop | Count the next character of the message and repeat from ProcessTextTokenFormat_CopyLoop. | ||||||||
| 43337 | LD (IX+0),B | Write B (4 the terminator) to *IX+0. | ||||||||
| 43340 | RET | Return. | ||||||||
| Prev: 43143 | Up: Map | Next: 43341 |