View Single Post
Old 21 November 2019, 10:20   #4
son of 68k
meynaf's Avatar
Join Date: Nov 2007
Location: Lyon / France
Age: 46
Posts: 3,644
Your routine would be better written this way :
move.l BITPLANE,a0
addq.w #2,a0
moveq #-1,d2
sub.b d0,d2
lsr.l #3,d0
mulu.w #4*44,d1
add.l d0,d1
add.l d1,a0

moveq #3,d3


bset d2,(a0)
add.w #44,a0
dbra d3,plane_loop

There were 3 errors in your code :
- as said, (a0,d1) instead of (a0,d1.l)
- as said, remainder of divu
- and a nice time bomb : add.w #44,d1 instead of add.l #44,d1
meynaf is offline  
Page generated in 0.04168 seconds with 11 queries