aboutsummaryrefslogtreecommitdiff
path: root/src/loadxex.s
blob: bf0f3c6014828f315ff2a3b3eb0a8403c471fff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

; 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.

 .include "atari.inc"

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