Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ORG 0H
- R1 EQU 0X06
- R2 EQU 0X07
- MOVLW D'64'
- MOVWF R1
- MOVLW D'8'
- MOVWF R2
- ; We want to Do R1/R2 We can assume that R1>R2 and we don't need Decimal Values
- ;SUGGESTIONS?
- END
- Q = 0
- while( R1 > R2 ){
- R1 = R1 - R2;
- Q = Q + 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement