View Single Post
Old 01 October 2010, 20:00   #38
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by Lonewolf10 View Post
Thanks. It took a while but I got it working properly now
Nice one.

Quote:
Originally Posted by Lonewolf10 View Post
(I commented out the line "move.w #$81A0,$DFF096", added a dc.l to store the DMACONR value and a few other lines to store/retrieve it to/from there)
DMACON is a word sized register, so a dc.w is enough. dc.l will work too of course but you waste 2 bytes.


Quote:
Originally Posted by Lonewolf10 View Post
I am continuing on with the course (currently on part 4), but something is starting to bug me. Some of the examples use...

blk.l 1,0

...to reserve space and their pre-set value when compiled. Devpac 2 doesn't like this saying "instruction not recognised". I can replace it with "dc.w" which isn't too much hassle, but I was wondering why it doesn't like the above. Is it K-Seka specific?
blk is SEKA specific, yes. Devpac and most other Assemblers use ds (d.efine s.torage) which is the same as blk. And watch out, dc.w 0 is not the same blk.l 1,0. (word vs. long).
StingRay is offline  
 
Page generated in 0.04440 seconds with 10 queries