Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ORG 0H
  2. R1 EQU 0X06
  3. R2 EQU 0X07
  4.  
  5. MOVLW D'64'
  6. MOVWF R1
  7. MOVLW D'8'
  8. MOVWF R2
  9.  
  10. ; We want to Do R1/R2 We can assume that R1>R2 and we don't need Decimal Values
  11. ;SUGGESTIONS?
  12.  
  13. END
  14.  
  15. Q = 0
  16. while( R1 > R2 ){
  17. R1 = R1 - R2;
  18. Q = Q + 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement