Re: [cc65] ca65

Date view Thread view Subject view

From: Marko Mäkelä (marko.makela_at_hut.fi)
Date: 2002-11-26 14:30:59


On Tue, Nov 26, 2002 at 02:16:20PM +0100, MagerValp wrote:
> Gotta stick up for my old favourite, DAsm :)

Yes, it's very nice and simple.  When I was asked to port the cbmlink code
from DAsm to André Fachat's xa, I spent many moments wondering why negation
doesn't always seem to work, why the colon or labels or macro names are
reserved words in comments, why macros cannot take parameters, and so on.
It also lacks the % operator.

> 	dc.w 2002

Hmm, does ca65 have a linker directive for reading the system time?  If it
does, is it Y10k compliant? :-)

> 	dc.b $9e
> 	dc.b init/1000 % 10 + $30
> 	dc.b init/100 % 10 + $30
> 	dc.b init/10 % 10 + $30
> 	dc.b init % 10 + $30

The code in Veni Vidi Vic and cbmlink is better: it outputs 1 to 5 digits. :-)

	Marko
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-11-26 14:31:19 CET