Jump to content

Quick DASM question


Recommended Posts



I seem to remember being able to do something like the below with DASM, but I forgot the syntax:

  .set-byte (number of bytes), (value).


e.g. if I wanted to set 64 bytes in ROM to zero, instead of doing ".byte 0" 64 times, I could just do:

  .set-byte 0,64


Of course, the above isn't valid syntax, but I could swear there was a way to do this.  Any hints?



Link to comment
Share on other sites

As a follow-up / alternative, I seem to remember that you could set a macro somewhere to set the default fill-in value for undeclared ROM space to whatever you wish (e.g. $FF or 0).  I would potentially also be interested in re-learning that as well.


I'd appreciate any help.

Link to comment
Share on other sites

As to default fill... DASM manual...


[label] ORG	    exp[,DefaultFillVal]

	    This pseudop sets the current origin.  You can also set the
	    global default fill character (a byte value) with this
	    pseudoop.  NOTE that no filler is generated until the first
	    data-generating opcode/psueoop is encountered after this one.
	    Sequences like:

		org  0,255
		org  100,0
		org  200
		dc   23

	    will result in 200 zero's and a 23. This allows you to specify
	    some ORG, then change your mind and specify some other (lower
	    address) ORG without causing an error (assuming nothing is
	    generated inbetween).

	    Normally, DS and ALIGN are used to generate specific filler


  • Like 1
Link to comment
Share on other sites

  • 1 month later...
On 2/21/2020 at 7:47 AM, Andrew Davie said:

another way....


  .byte 0


Hi all,


Newbie here.  I cannot find the REPEAT-REPEND command anywhere in any literature that I have.


Can you point me to where/what/how to use this command properly?



Thank you!




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...