![]() |
Routines |
| Prev: A887 | Up: Map | Next: A94D |
|
Used by the routines at PrintTextToken and A94D.
Reads the format byte and copies its four data bytes into the buffer, stopping when the type is 0F.
|
||||||||||
|
Extract the format type and copy format data to the buffer.
|
||||||||||
| ProcessTextTokenFormat | A92F | LD A,(HL) | Read the format byte. | |||||||
| A930 | AND %00001111 | Extract the format type. | ||||||||
| A932 | CP $0F | Return when the format type is 0F. | ||||||||
| A934 | RET Z | |||||||||
|
Calculate the table offset for this format type (multiply by 4).
|
||||||||||
| A935 | RLCA | Multiply by 04 to get the table offset. | ||||||||
| A936 | RLCA | |||||||||
| A937 | LD L,A | Set HL to the offset value (L=A, H=00). | ||||||||
| A938 | LD H,$00 | |||||||||
| A93A | LD BC,$A85C | Use the format data at Table_FormatData. | ||||||||
| A93D | ADD HL,BC | |||||||||
| A93E | LD B,$04 | |||||||||
| ProcessTextTokenFormat_CopyLoop | A940 | LD A,(HL) | Store the record's flag byte. | |||||||
| A941 | INC HL | |||||||||
| A942 | LD (IX+$00),A | |||||||||
| A945 | INC IX | |||||||||
| A947 | DJNZ ProcessTextTokenFormat_CopyLoop | Count the next character of the message and repeat from ProcessTextTokenFormat_CopyLoop. | ||||||||
| A949 | LD (IX+$00),B | Write B (04 the terminator) to *IX+00. | ||||||||
| A94C | RET | Return. | ||||||||
| Prev: A887 | Up: Map | Next: A94D |