Thread: 68k details
View Single Post
Old 12 December 2018, 16:13   #962
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 47
Posts: 3,779
You may also try the following :
Code:
 moveq #1,d6
 moveq #1,d7
 move.w #1000-9-1,d5
 moveq #10,d4
 moveq #2,d0
.loop
 add.l d7,d6
 exg d6,d7
 addq.l #1,d0
 cmp.l #1000000000,d7
 blo.s .loop
 divu.l d4,d6
 divu.l d4,d7
 dbf d5,.loop
 rts
... but it's probably wrong (except the return value)
meynaf is online now  
 
Page generated in 0.04676 seconds with 11 queries