Re: [cc65] Can ca65 be told to accept multiple instructions on the same line?

From: Lars Haugseth <cc651larshaugseth.com>
Date: 2010-06-11 01:30:48
On 06/11/2010 12:45 AM, cc65@larshaugseth.com wrote:
> On 06/10/2010 06:08 PM, Ullrich von Bassewitz wrote:
>>
>> On Thu, Jun 10, 2010 at 03:53:21PM +0200, Lars Haugseth wrote:
>>> The subject pretty much says it all: is there some way to get ca65
>>> to parse more than a single assembly instruction on the same line,
>>> like this for example?
>>
>> No, sorry.
>
> I thought as much, just wanted to get it confirmed before I start
> writing a preprocessing wrapper. Thanks.

This little Makefile-hack seems to work well enough for my purposes:

%.o: %.s
	sed -r 's/\s+:\s+/\n\t/g' $< > $(<:.s=.s2)
	ca65 -U -g -l $(<:.s=.s2)
	rm $(<:.s=.s2)

-- 
Lars Haugseth
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jun 11 01:30:57 2010

This archive was generated by hypermail 2.1.8 : 2010-06-11 01:30:59 CEST