Arakula / dasmfw

The DisASseMbler FrameWork
GNU General Public License v2.0
13 stars 4 forks source link

Observation: Character string handling with as65 assembler #11

Closed phillipeaton closed 2 years ago

phillipeaton commented 2 years ago

image

The above string, when assembled with as65, produces:

image

...instead of:

image

The backslash would appear to be escaping the '4'.

The workaround I'm using is (note, binary start address is $2000):

image

...which produces:

image

I'm not sure if a program change is necessary, I suppose you could have a switch to render \ a non-printing character?

Arakula commented 2 years ago

I could, but that's assembler-specific (others might, and do, handle \ as a simple character). I'll think about it.

Arakula commented 2 years ago

And your workaround is a good one.

phillipeaton commented 2 years ago

that's assembler-specific...

So are all the other assembler-specific directives! For example, fcc/fcb seem somewhat obsolete these days 🙂

I'll let you know if I come across any other assemblers that do the same thing.

phillipeaton commented 2 years ago

Nothing needed for this issue.