Prev: 29257 Up: Map Next: 29329
29323: Input: Compare Two Totals
Used by the routine at Input_WaitForAKey.
Compares two 16-bit totals. Carry is set when the first is below the second. The input delay uses it to cap the next wait at 3000.
Input_CompareTwoTotals 29323 LD A,H Return at once when the high bytes differ. Carry is set when the first total is below.
29324 SUB D
29325 RET NZ
29326 LD A,L Compare the low bytes.
29327 SUB E
29328 RET Return.
Prev: 29257 Up: Map Next: 29329