asm6f Tweaks (6502 assembler)

Working on something cool? Show the the world!
Post Reply
User avatar
SpiderDave
Posts: 2
Joined: Sat Feb 15, 2020 4:56 am
Contact:

asm6f Tweaks (6502 assembler)

Post by SpiderDave »

Making a few changes to asm6f.

https://github.com/SpiderDave/asm6f
  • Added more descriptive errors.
    Image
  • Fixed a crash occurring when an unknown label error is raised when the output file is still empty.
  • Made a single Readme.txt. One is enough.
  • Added switch "-r" (raw output). Removes the first 16 bytes of the file.
Directives

PRINT

Print text to console.
Useful for displaying extra information.

PRINT Hello World!

TEXT
TEXTMAPFROM
TEXTMAPTO


Define and use textmaps. The TEXT directive is similar to "DB", but it
uses a textmap defined with TEXTMAPFROM and TEXTMAPTO.

TEXTMAPFROM 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ x-!.c
TEXTMAPTO 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232428292bafcf

; outputs 1D 0E 1C 1D
TEXT "TEST"


IFFILEEXIST/IFFILE

Process a block of code if a file exists.

IFFILEEXIST "file.ext"
.
.
.
ENDIF

ToDo:
  • add TIME, DATE directives or symbols
  • add OPTION directive
  • add ability to include all files in a folder. have include (and incbin?) check
    if the parameter is a folder, and if so, include all .asm or .inc.
  • textmapfrom, textmapto--
    Should use quotes (optionally?) to surround the data, and still be able to use a quote character inside.
    Add proper errors for non-hex characters.
    Allow multiple textmaps
  • fix up all error messages to give more information.
  • make a single readme
  • fileexist directive--raise errors for extra characters, missing filename, etc.
  • allow command line switches larger than one character.

Post Reply