Advertisement
Guest User

Untitled

a guest
May 21st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; r3 high, a low, r1 denominator
  2. ; result r2 low, r4 high
  3. mov r3, #03h
  4. mov a, #0e8h
  5. mov r1, #01eh
  6.  
  7. mov r2, #0h
  8. mov r4, #0h
  9. nhi:
  10.     clr c
  11. ncarry:
  12.     subb a, r1
  13.     ;cjne r2, #0FFh , notovf
  14.  
  15.     ;mov r2, #00h
  16.     ;inc r4
  17. notovf:
  18.     inc r2
  19.  
  20.  
  21.     jnc ncarry
  22.     dec r3
  23.     cjne r3, #0FFH,nhi
  24.  
  25. dec r2
  26. nnop :ljmp nnop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement