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

8.3 Hexadecimal Math

26A2A ADIV3 A.A = A.A/3
Uses A.6 C.6 P
26A23 ADIV6 A.A = A.A/6
Uses A.6 C.6 P
26A15 ADivC B.A=A.A/C.A
Uses A.A C.A
269F2 AMULT34 A.A=A.A*34
Uses C.A
26A1C BMULT34 B.A=B.A*34
Uses C.A
269F9 CMULT34 C.A=A.A*34
Uses A.A
26F00 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
26A0E HEXTODEC Converts hex in C.A to BCD in A.A
Uses A.6 B.6 P
2DEAA 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
2709E 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
26A07 MULTB+A*C B.A=B.A+(A.A*C.A)
26A00 MULTBAC B=0.A <see>MULTB+A*C



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