Re: [cc65] macro arguments

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-12-29 22:09:17
On Thu, Dec 29, 2005 at 10:05:28PM +0100, silverdr@inet.com.pl wrote:
> One more question: I am looking for something like .DSB from xa - the
> control command that assembles a given number of bytes. Is there
> something like that?  I currently wrote a:
>
> .macro	dsb    	numberoftimes
> 	.repeat	numberoftimes
> 		.byte  	$00
> 	.endrepeat
> .endmacro
>
> macro to emulate this command but maybe I am just missing something?

        .res    count [,value]

is probably what you are searching for.

If you don't give a value, the fill value from the linker config is used
(default $00).

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Dec 29 22:09:33 2005

This archive was generated by hypermail 2.1.8 : 2005-12-29 22:09:35 CET