[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.3 Hexadecimal Math

0D62F DCHXW Converts BCD in C.W to hex in
A.W B.W C.W. See <see>HXDCW
Uses P CRY
06A8E DIV5 C.A = C.A/5
Uses A.10 C.10 D.10 P
0DB91 HXDCW Converts hex in A.W to BCD in
A.W B.W C.W. See <see>DCHXW
Uses P CRY
Note that HXDCW wants the input in A but DCHXW wants it in C
03F24 IntDiv A.A/C.A -> A.A=remainder,
C.A=quotient, uses D.A P SB
53EE4 MPY Multiply A.W and C.W (-> A.W=C.W)
Uses D.W, SB. Returns carry clear
03991 MUL# B.A = A.A*C.A



This document was generated by Carsten Dominik on May, 30 2005 using texi2html