freem / asm6f

A fork of loopy's ASM6, a 6502 assembler.
94 stars 22 forks source link

[REQUEST] Directives for Non-ASCII Text Formatting via tables (character codes) #5

Open TheRealHamtaro126 opened 7 years ago

TheRealHamtaro126 commented 7 years ago

This is relating to how strings written for NES, C64, and other game systems not exactly supporting the ASCII Standard for Text.

The character mapping feature is to be made from how Thingy and ASAR (XKAS 6) uses them, using the table format standard

These are the directives:

.RTLTABLE "Include.File" - Include a Table for Non-Standard Text, Formatted Right To Left. .LTRTABLE "Include.File" - Include a Table for Non-Standard Text, Formatted Left To Right. .TEXT "String" - Adds Non-Standard Text, uses ASCII by Default. .CLRTABLE - Clears and Resets the table back to the Default ASCII standard

Support is REALLY appreciated!

gitjeff2 commented 5 years ago

I second @TheRealHamtaro126 on this.

The 64tass assembler has very good support for this and asm6f could benefit from this feature as well. See 64tass Reference Manual, Sec. 4.3 Text Encoding for details.

koitsu commented 4 years ago

For a different way to go about this, or just for overall ideas, consider checking out the assembler manual for x816, pseudo-ops .ASCTABLE, CLEARTABLE or CLEAR, and .ASC. Be sure to note scope of where some of those directives are allowed. (Edit 2023/01/05: updated link to x816 manual)