Prev: 976C Up: Map Next: 9883
9873: Advance a character's program pointer
Moves the program pointer past the current instruction (HL+DE), skipping two more bytes if bit 4 of the instruction says a jump address follows, and stores it in the character's table entry.
9873 ADD HL,DE Move past this instruction
9874 BIT 4,(IX+$00) Does it have a "failure address" that follows it?
9878 JR Z,$987C
987A INC HL If so, skip past that too
987B INC HL
987C LD (IY+$02),L Store the new position back into the character's own table entry
987F LD (IY+$03),H
9882 RET
Prev: 976C Up: Map Next: 9883