-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Binary_loader_for_aquarius.asm
59 lines (48 loc) · 1.41 KB
/
_Binary_loader_for_aquarius.asm
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
47
48
49
50
51
52
53
54
55
56
57
58
59
; Aquarius 'CAQ' Cassette Header for self-loading/self-installing of
; a BASIC loader for assembly binary programs.
; Add this header, and it *should* auto create its own BASIC loader ,so
; that upon CLOADing your program in, you can then just type RUN to
; execute your binary program on the Aquarius computer.
; This is found within the VirtualAquarius emulator's cassette directory -
; All credits go to James Tamer, creator of this emulator.
; Use SJASMplus assembler.
output "filename.caq" ; Assembler: SJASM
.org $38E1
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
.byte $00
; cassette tape file name, displays on screen during CLOADing, 6 characters.
.byte " name "
; end name
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
; $3900
.byte $00
; line link, line number
.byte $25,$39,$0a,$00
; rem
.byte $8e
.byte " for Aquarius S2 (do not edit)"
.byte 00
; line link, line number
.byte $2d, $39, $14, $00
; B=0
.byte $42, $B0, $30
.byte 00
; line link, line number
.byte $49, $39, $1e, $00
; poke 14340,nnn:poke 14341,mmm
.byte $94, $20, "14340", $2C, "088"
.byte $3A
.byte $94, $20, "14341", $2C, "057"
.byte 00
; line link, line number
.byte (MLEND & 255)
.byte (MLEND >> 8)
.byte $28, $00
; B=USR(0):END
.byte $42, $B0,$B5,$28,$30,$29,$3A,$80
.byte $00
.byte $00,$00
MLSTART
<asm goes here>
MLEND
end