Re: [cc65] ca65 negative constant question

From: thefox xofeht <thefox1aspekt.fi>
Date: 2011-09-11 15:29:51
On Sun, Sep 11, 2011 at 4:00 PM, Christian Krüger <C.Krueger.B@web.de> wrote:
> Am 11.09.2011 12:09, schrieb thefox xofeht:
>>
>> lda #<-73
>
> Thank you, works very well. Now I just have to add an error, if the constant
> exceeds the signed 8-bit.
> Any suggestions?

You should be able to use .assert for that:

.assert foo >= -128 && foo < 127, error, "foo out of range"

-thefox
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Sep 11 15:30:10 2011

This archive was generated by hypermail 2.1.8 : 2011-09-11 15:30:13 CEST