Quote:
Originally Posted by Lonewolf10
Thanks. It took a while but I got it working properly now
|
Nice one.
Quote:
Originally Posted by Lonewolf10
(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
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).