Prev: 70E8 Up: Map Next: 711A
70F3: Clause: Pack The Action Scores
Packs two scores from the action entry into the clause. The high nibbles of bytes 5 and 7 are stored at B71E. The high nibbles of bytes 1 and 3 are stored at B71D.
ClausePackTheActionScores 70F3 LD A,(IX+$05) Read byte 5 of this action entry.
70F6 RRCA Take the high nibble of byte 5.
70F7 RRCA
70F8 RRCA
70F9 RRCA
70FA AND $0F
70FC LD C,A
70FD LD A,(IX+$07) Read byte 7 of this action entry.
7100 AND $F0 Add byte 5's high nibble, now the low nibble, onto the high nibble of byte 7.
7102 ADD A,C
7103 LD ($B71E),A Update *B71E.
7106 LD A,(IX+$01) Read byte 1 of this action entry.
7109 RRCA Take the high nibble of byte 1.
710A RRCA
710B RRCA
710C RRCA
710D AND $0F
710F LD C,A
7110 LD A,(IX+$03) Read byte 3 of this action entry.
7113 AND $F0 Add the high nibble of byte 1 onto the high nibble of byte 3.
7115 ADD A,C
7116 LD ($B71D),A Update *B71D.
7119 RET Return.
View the equivalent code in;
Prev: 70E8 Up: Map Next: 711A