Debian Codegraph @

ACME_Lib/cbm/basic10.a

raw
1 ;ACME 0.96.4
2
3 !ifdef lib_cbm_basic10_a !eof
4 lib_cbm_basic10_a = 1
5
6 !source <cbm/basic7.a> ; from 0x80 to 0xff, 0xce 0x02 to 0xce 0x0a, 0xfe 0x02 to 0xfe 0x26
7
8 ; token values
9 token_PASTE = $e3 ; was called GSHAPE in basic v7
10 token_CUT = $e4 ; was called SSHAPE in basic v7
11 token_LINE = $e5 ; was called DRAW in basic v7
12 token_DIR = $ee ; was called DIRECTORY in basic v7
13
14 ; Macros for inserting BASIC commands
15 !macro b_PASTE {!by token_PASTE} ; aka GSHAPE
16 !macro b_CUT {!by token_CUT} ; aka SSHAPE
17 !macro b_LINE {!by token_LINE} ; aka DRAW
18 !macro b_DIR {!by token_DIR} ; aka DIRECTORY
19
20 ; STASH/FETCH/SWAP are all decoded to DMA:
21 !macro b_DMA {!by $fe, $1f} ; command, length, source, target, subcommand
22 ; extended token $fe $20 isn't used ($20 is ' ')
23 ;!macro b_DMA {!by $fe, $21}
24 ; extended token $fe $22 isn't used ($20 is '"')
25 ;!macro b_DMA {!by $fe, $23}
26
27 ; renamed function:
28 !macro b_LPEN {!by $ce, $04:!pet '('} ; was called PEN in basic7
29 ; basic7 defines functions up to $ce, $0a (POINTER)
30 ; new functions:
31 ;!macro b_ {!by $ce, $0b:!pet '('} ; ?
32 !macro b_PIXEL {!by $ce, $0c:!pet '('} ; return pixel color
33 !macro b_RPALETTE {!by $ce, $0d:!pet '('} ; return palette color
34
35 ; new instructions:
36 !macro b_TYPE {!by $fe, $27} ; display sequential disk file
37 !macro b_BVERIFY {!by $fe, $28}
38 !macro b_ECTORY {!by $fe, $29} ; no-op in case someone types "DIRECTORY"?
39 !macro b_ERASE {!by $fe, $2a} ; delete file
40 !macro b_FIND {!by $fe, $2b} ; search in basic program
41 !macro b_CHANGE {!by $fe, $2c} ; edit program
42 !macro b_SET {!by $fe, $2d} ; set system parameter
43 !macro b_SCREEN {!by $fe, $2e}
44 !macro b_POLYGON {!by $fe, $2f}
45 !macro b_ELLIPSE {!by $fe, $30}
46 !macro b_VIEWPORT {!by $fe, $31} ; unimplemented?
47 !macro b_GCOPY {!by $fe, $32} ; copy graphics
48 !macro b_PEN {!by $fe, $33} ; set pen color
49 !macro b_PALETTE {!by $fe, $34} ; set palette color
50 !macro b_DMODE {!by $fe, $35} ; set draw mode
51 !macro b_DPAT {!by $fe, $36} ; set draw pattern
52 !macro b_PIC {!by $fe, $37}
53 !macro b_GENLOCK {!by $fe, $38}
54 !macro b_FOREGROUND {!by $fe, $39} ; set foreground color
55 ; extended token $fe $3a isn't used ($3a is ':')
56 !macro b_BACKGROUND {!by $fe, $3b} ; set background color
57 !macro b_BORDER {!by $fe, $3c} ; set border color
58 !macro b_HIGHLIGHT {!by $fe, $3d} ; set highlight color
59 !macro b_MOUSE {!by $fe, $3e} ; set mouse parameters
60 !macro b_RMOUSE {!by $fe, $3f} ; read mouse position
61 !macro b_DISK {!by $fe, $40} ; send disc command
62 !macro b_CURSOR {!by $fe, $41} ; place text cursor?
63 ;!macro b_ {!by $fe, $42} ; ?
64 !macro b_LOADIFF {!by $fe, $43} ; load IFF graphics
65 !macro b_SAVEIFF {!by $fe, $44} ; save IFF graphics
66 !macro b_EDIT {!by $fe, $45} ; switch between program and text editing