Programming - Sinclair MrX Manual

Sound board for the zx81
Table of Contents

Advertisement

8.

Programming

The MrX is compatible with the original ZON-X sound card.
Addresses:
The MrX Interface responds to data placed in the following addresses:
Latch
0xDF
0xCF
0xCF
0xDF
See chapter "9. The Yamaha YM2149" for further explanation about "Latch" (register address
latch) and "Data" (write mode).
Examples in assembler
Simple Sound:
;
LATCH:
equ $DF
LATCH:
equ $CF
DTAX:
equ $0F
;
DTAX:
equ $1F
xxx:
LD
A,7
out
(LATCH),A
LD
A,$C0
out
(DTAX),A
LD
A,$08
out
(LATCH),A
LD
A,15
out
(DTAX),A
looop:
LD
A,0
out
(LATCH),A
LD
A,70
out
(DTAX),A
ret
Version: v005
Data
Comment
0x0F
modified ZON-X
0x1F
original ZON-X
0x0F
from ZON-X user manual
0x1F
additional combination
15
Date: 22.05.2012

Advertisement

Table of Contents
loading

Table of Contents