Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; r3 high, a low, r1 denominator
- ; result r2 low, r4 high
- mov r3, #03h
- mov a, #0e8h
- mov r1, #01eh
- mov r2, #0h
- mov r4, #0h
- nhi:
- clr c
- ncarry:
- subb a, r1
- ;cjne r2, #0FFh , notovf
- ;mov r2, #00h
- ;inc r4
- notovf:
- inc r2
- jnc ncarry
- dec r3
- cjne r3, #0FFH,nhi
- dec r2
- nnop :ljmp nnop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement