I've mostly been studying on the VDP, but I recently started looking at using the Z80, and the PSG. There are a few things though, I can't get the PSG to even generate white noise. Also, I need to know if the Z80 is something you just start programming, or if it has some initialising code like the M68000, like a table of vectors and such. Any help would be appreciated.
main.asm:
Z80.asm:
main.asm:
...
z80set:
lea ($A11100).l, a0
lea ($A11200).l, a1
move.w #$100, (a0)
move.w #$100, (a1)
lea (z80driv).w, a2
lea ($A00000).l, a3
moveq #z80drivend-z80driv-1, d0
z80loop:
move.b (a2)+, (a3)+
dbra d0, z80loop
move.w #$0, (a1)
move.w #$0, (a0)
move.w #$100, (a1)
loop:
nop
bra.b loop
z80driv:
incbin "z80.bin"
z80drivend:
...
Z80.asm:
psginit:
di
im 1
ld A, F9H
ld (7F11H), A
whitenoise:
ld A, E6H
ld (7F11H), A
jp whitenoise