APPLICATION EXAMPLES
16
x 8 DIVIDE-{ASSEMBLED
BY
MCS-48 MACRO ASSEMBLER SEE AP-49)
lSlS-1
I
"CS-48/UPI-41
"ACRO
ASSEULER.
Y3.
I
LOC
OBJ
LINE
SOURCE
STATE"ENT
1865
37
I-
238
CPL
A
1=
2H
IF
BORROW-I
THEN
1166
E668
I-
24.
JNC
DIYIC
I'
241
RESTORE
DIYIDEND
IU8
61
I-
242
ADD
A.IRI
II"
IHC
I-
243
J"P
DIYID
1=
244
ELSE
1=
245
DIYIC,
1=
246
QUOTlENTlll"1
1868
IA
I-
247
INC
XA
I-
248
ENDIF
I-
249
COUNT'
-COUNT-I
1=
251
UNTIL
COUNT=I
886C
EB57
1=
251
DIVID,
DJNZ
COUNT.DIYILP
1=
252
CLEAR
OVERFLOW
FLAG
886£
97
1=
253
CLR
C
1=
254
ENDIF
1=
255
ENDDIVIDE
Bl6F
2A
I-
256
DIVIB,
XCH
A.XA
1178
83
I-
257
RET
5-29