Prev: 44650 Up: Map Next: 44713
44671: Save Text Pointer
Remembers the text pointer so the message can be continued afterwards.
SaveTextPointer 44671 LD HL,(41003) Copy the word at ActiveTextPointer into the word at SavedTextPointer and keep D.
44674 LD (41001),HL
44677 LD A,D
44678 LD (41005),A Store A at SavedSourceByte.
44681 LD A,(HL) Take the saved text pointer and start its length at zero.
44682 LD D,A
44683 LD BC,0
44686 INC HL Move past this byte and go to SaveTextPointer_Next if it is 224.
44687 CP 224
44689 JR Z,SaveTextPointer_Next
44691 CP 240 Go to SaveTextPointer_Next if the token code is 240.
44693 JR Z,SaveTextPointer_Next
44695 CP 144 Go to SaveTextPointer_Next if it is 144.
44697 JR Z,SaveTextPointer_Next
44699 CP 128 Go to SaveTextPointer_RecordObjectProcessing if the token code is at least 128.
44701 JR NC,SaveTextPointer_RecordObjectProcessing
SaveTextPointer_Next 44703 LD A,(HL) Read the next text pair and step past it.
44704 LD B,A
44705 INC HL
44706 LD C,(HL)
44707 INC HL
SaveTextPointer_RecordObjectProcessing 44708 LD (41003),HL Store HL in the word at ActiveTextPointer.
44711 LD A,D Read the high byte of the source.
44712 RET Return.
View the equivalent code in;
Prev: 44650 Up: Map Next: 44713