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.Received on Sat Mar 20 20:52:34 2010
This archive was generated by hypermail 2.1.8 : 2010-03-20 20:52:38 CET