;8FOR16.ASM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; a program to do 16-bit
; addition with only 1 8-bit
; accumulator
; S.Norr
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org 0
db ff,ff,ff,ff,ff,ff,00
org ff00
ldx #0
clr 10
clr 11
Strt: ldaa 0,x
beq loop
inx
adda 11
staa 11
ldaa 10
adca #0
staa 10
bra Strt
Loop: bra Loop