Thanks for the quick reply. Your example, plus removing the "-t vic20" option on the ca65 command-line, allowed this to work. From reading this directive's documentation, I would have thought that not to be the case, but it is ... ________________________________________ From: owner-cc65@musoftware.de [owner-cc65@musoftware.de] On Behalf Of Ullrich von Bassewitz [uz@musoftware.de] Sent: Saturday, March 20, 2010 3:52 PM To: cc65@musoftware.de Subject: Re: [cc65] ca65 .charmap directive On Sat, Mar 20, 2010 at 03:27:41PM -0400, rhurst@bidmc.harvard.edu wrote: > I am having difficulty with this ... if I want to map the letters A-Z to screen values, i.e., [...] > Am I misinterpreting its usage? .charmap (and it's #pragma counterpart) maps source character codes into target character codes. The assembler/compiler has a predefined mapping table that tells how to map ISO-8859-15 (which is expected on source level) into PETSCII/ATASCI or whatever. .charmap replaces entries in this translation table. It does not do translation from one target character into another. So what you want is probably: .charmap 'A', $01 .charmap 'B', $02 .charmap 'C', $03 Which works nicely: ------------------------------------------------------------------------- ca65 V2.13.9 - (C) Copyright 1998-2005 Ullrich von Bassewitz Main file : t.s Current file: t.s 000000r 1 .charmap 'A', $01 000000r 1 .charmap 'B', $02 000000r 1 .charmap 'C', $03 000000r 1 01 02 03 00 .asciiz "ABC" 000003r 1 ------------------------------------------------------------------------- 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. ---------------------------------------------------------------------- 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 Mar 21 02:33:22 2010
This archive was generated by hypermail 2.1.8 : 2010-03-21 02:33:24 CET