Jump to content

file based assembler 1.6

   (0 reviews)

About This File

Experimental file-based assembler.   Work in progress.

  • read source files (up to 62 Kb) directly from disk (sdcard in the emulator)
  • write output directly as PRG file to disk (sdcard in the emulator)
  • can assemble large programs to any location in memory
  • set program counter with "* = $9000"
  • numbers in decimal 12345, hex $abcd, binary %1010011
  • symbolic labels
  • can use '<value' and '>value' to get the lsb and msb of a value respectively
  • define data with .byte 1,2,3,4, .word $a004,$ffff and .str "hello!"
  • can switch to (the rom-based) x16edit to avoid having to swap-load programs all the time
  • disk device number is selectable

Source code is here https://github.com/irmen/cx16assem

Here's a small example file HELLO.ASM that you can try:

* = $8000
CHROUT = $FFD2

START
    LDY  #$00
LOOP:
    LDA  MESSAGE,Y
    BEQ  EXIT
    JSR  CHROUT
    INY
    BNE  LOOP
EXIT:
    RTS

MESSAGE:
    .STR "HELLO, WORLD!"
    .BYTE 13, 0

What's New in Version 1.6   See changelog

Released

  • output no longer written to system ram (but to banked ram), so we can now assemble large programs and to any location in memory
  • some small optimizations and fixes

try_it

No
  • Like 2



User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
×
×
  • Create New...

Important Information

Please review our Terms of Use