Sherlock: annotated disassembly

Routines

Prev: AEA9 Up: Map Next: AEC5
AEB6: Step forward over nodes marked with bit 6 of +1
IX = the node before.
Input
IY A node
B The sentence count
Output
IY The next node not marked BUT
IX The node before
B One fewer
AEB6 DEC B Subtract one from B - Step on over nodes marked with bit 6 of +1 (BUT nodes); B is one fewer
AEB7 PUSH IY Save IY on the stack
AEB9 POP IX Restore IX from the stack
AEBB CALL $AEA9 Call the routine "IY = the next node in the list (Z at the end)" (AEA9)
AEBE BIT 6,(IY+$01) Test bit 6 of byte +1 of the record at IY
AEC2 JR NZ,$AEB7 If bit 6 of byte +1 of the record at IY is set, go back to AEB7
AEC4 RET Return to the caller
Prev: AEA9 Up: Map Next: AEC5