Debian Codegraph @

src/asm/6502/stream_example.i

raw
1 ; this is an example file.
2
3 ; constants
4 FCS_MAX_CHAN=8 ; maximum number of channels (up to 127, but see below!)
5 FCS_MAX_STACK=16 ; stack depth per channel (FCS_MAX_STACK*FCS_MAX_CHAN<256)
6
7 ; player constants - change if necessary
8 fcsAddrBase=$20 ; player state address base
9 fcsZeroPage=$10 ; player state address base for zero-page-mandatory variables
10 fcsGlobalStack=$200 ; player stack (best placed in a page)
11 fcsPtr=$8000 ; pointer to command stream
12 fcsVolMax=fcsVolMaxExample ; pointer to max channel volume array
13
14 ; command call table
15 ; - see src/engine/dispatch.h for a list of commands to be potentially handled
16 ; - do not implement HINT commands - the player will never send these
17 ; - no need to implement commands not pertaining to the target system
18 ; - a zero pointer means "don't handle"
19 fcsCmdTableLow=fcsCmdTableExample
20 fcsCmdTableHigh=fcsCmdTableExample
21
22 ; "dummy" implementation - example only!
23
24 fcsDummyFunc:
25 rts
26
27 fcsVolMaxExample:
28 .db $7f, $00
29 .db $7f, $00
30 .db $7f, $00
31 .db $7f, $00
32 .db $7f, $00
33 .db $7f, $00
34 .db $7f, $00
35 .db $7f, $00
36
37 fcsCmdTableExample:
38 .dsb 256, 0