diff options
author | B. Watson <yalhcru@gmail.com> | 2019-03-15 22:30:22 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2019-03-15 22:30:22 -0400 |
commit | bcd97cceedc7b34b398e9c62be3f82c18925f68d (patch) | |
tree | 65206182fdb30727fac9cbb1e7846828f897d5be /src/loadxex.s | |
parent | 48f3a6372988f5843302615b9ba6aa7ef700f579 (diff) | |
download | fujichat-bcd97cceedc7b34b398e9c62be3f82c18925f68d.tar.gz |
port loadmenu and loadmkau to ca65 and unify them
Diffstat (limited to 'src/loadxex.s')
-rw-r--r-- | src/loadxex.s | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/loadxex.s b/src/loadxex.s new file mode 100644 index 0000000..7008f75 --- /dev/null +++ b/src/loadxex.s @@ -0,0 +1,45 @@ + +; Load FUJIMENU.COM + +; This will be part of AUTORUN.SYS on the disk. Without it, +; I'd have to make AUTORUN.SYS a copy of FUJIMENU.COM with +; the serial driver prepended. + +RUNAD = $02e0 +atari_exec = $0600 +main = $2e00 ; same place as cc65 + +; segment header + .org main-6 + .word $FFFF + .word main + .word endmain-1 + + .org main + +; If we do this, pressing Reset give us DOS. I want a reboot, +; so leave it out. +;; ldx #1 +;; stx BOOTQ +;; dex +;; stx COLDST + +; Not much to this... + lda #<menu_filename + ldx #>menu_filename + jmp atari_exec + +menu_filename: + .ifdef MENU + .byte "D:FUJIMENU.COM", 0 + .else + .byte "D:MAKEAUTO.COM", 0 + .endif + +endmain: + +; segment header + .word RUNAD + .word RUNAD+1 + .word main + |