Debian Codegraph @

src/asm/68k/amigatest/README.md

raw
1 # Amiga verification export format
2
3 "ROM" export format exclusively for verifying whether the Amiga emulation in Furnace is correct.
4
5 do not assume this is the actual ROM export! it is nothing more than a register dump kind of thing...
6
7 # process
8
9 enable the setting in Furnace to unlock the export option by adding this to furnace.cfg:
10
11 ```
12 iCannotWait=1
13 ```
14
15 go to file > export Amiga validation data...
16
17 put sample.bin, sbook.bin, seq.bin, wave.bin and wbook.bin in this directory.
18
19 type `make`. you need vasm (68000 with Mot syntax) in order for it to work.
20 alternatively, type:
21
22 ```
23 vasmm68k_mot -Fhunkexe -kick1hunks -nosym -o player player.s
24 ```
25
26 run `player` on Amiga. it should play the exported song.
27
28 # notes
29
30 may not work correctly if you have slow/fast memory!
31 sequence and wave data should reside in fast memory but I haven't figured out how to...
32
33 # sequence format
34
35 ## 00-0F: per-channel (00, 10, 20, 30)
36
37 - 00 xxxxxx yyyy: set loc/len
38 - x: loc
39 - y: len
40 - 01 xxxxxx yyyy: initialize wavetable (xxxx: pos; yy: length)
41 - 02 xx: set loc/len from sample book
42 - 03 xx: initialize wavetable from wave book
43 - 04 xxxx: initialize wavetable from wave book (short)
44 - 06 xxxx: set period
45 - 08 xx: set volume
46 - 0a xxxx: set data
47
48 ## F0-FF: global
49
50 - f0: do nothing
51 - f1: next tick
52 - f2 xx: wait
53 - f3 xxxx: wait
54 - f6 xxxx: write to DMACON
55 - fe xxxx: write to ADKCON
56 - ff: end of song