View Single Post
Old 01 October 2010, 21:00   #39
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by StingRay View Post

DMACON is a word sized register, so a dc.w is enough. dc.l will work too of course but you waste 2 bytes.
Yes, oops. I was more concerned with getting it to work properly and overlooked that.

Quote:
Originally Posted by StingRay View Post

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).
Thanks for that. I just reached example 6 (part 4, page 9) that uses "blk.l 10240,$80" to define one bitplane and pre-sets the bitplane value for a quick display of how a bitplane works.
Of course, I'll have to add some move.l's and a dbra loop to do the same thing, as ds (define storage) doesn't seem to support the pre-set values (2nd part of blk.l)


Regards,
Lonewolf10
Lonewolf10 is offline  
 
Page generated in 0.04443 seconds with 11 queries