Jump to content

File based assembler 2.0

   (0 reviews)

1 Screenshot

About This File

Experimental file-based assembler.   Work in progress.

warning requirements: patched v39 roms, sdcard image (no host filesystem passthrough) warning

  • requires ZeroByte's patched Kernal LOAD routine to deal with the HIRAM banks correctly! Using the default unpatched V39 kernal Rom will crash the commander X16, and can corrupt your sd-card image!
  • due to remaining kernal / emulator bugs, the file loading mechanism only works on an attached sdcard image in the emulator. Host mounted filesystem doesn't work.

 

  • reads source files (any size) from disk (sdcard)
  • write resulting output directly as PRG file to disk (sdcard)
  • can assemble to any system memory location
  • set program counter with * = $9000
  • numbers can be written in decimal 12345, hex $abcd, binary %1010011
  • symbolic labels
  • 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!"
  • disk device 8 and 9 selectable
  • can switch to (rom-based) x16edit to edit a file, to avoid having to swap-load programs all the time. You'll have to create a custom rom with x16edit embedded in it in bank 7

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

Edited by desertfish
demo movie


What's New in Version 2.0   See changelog

Released

Totally rewritten file handling. Now uses much faster file loading and hiram to store files.

Revamped user interface.


try_it

No
  • Like 3
 Share


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