Search

in:

Forum: Software Development

Forums > Software Development > GET YOUR Z80 and ADPCM HERE > Re: z80 and ADPCM

Re: z80 and ADPCM


TascoDLX posts: 129 3 stars United_States
Don't know about your ADPCM algorithm, but a few other things....

move.w #$100,$a11200 ; reset it

That's not how you reset the Z80. It's a manual operation: you write #$0000, wait, then write #$0100.

move.l #$10000,d2
WaitLoop1:
nop
dbra d2,WaitLoop1

Not quite. DBRA operation is word-sized (here, D2 is #$0000). This won't loop worth a damn.

move.w #$400,d2
lea $a00800,a2
; move.b #72,(a2)+
; move.b #73,(a2)+

PlayLoop2: ;Copy 1024 Bytes
move.l (a1)+,(a2)+
dbra d2,PlayLoop2

For the correct size, the initial value of D2 for DBRA should be #$03FF. Also, the MOVE.L instruction should be a MOVE.B instruction (but you knew that wink).

Show posts:
Jump to forum:

Current Poll

All your base are belong to us
  • you bet!
  • what?!?
View Results
(Votes: 198)
Cookies must be allowed to vote

Online users

41 online users

Shoutbox

tomman, 09:00 CEST, 2014/04/08: (Note to myself: try Fusion on Debian Jessie...)
tomman, 09:00 CEST, 2014/04/08: Twitter? Social networking? HELL NO :P
Eidolon, 11:05 CET, 2014/03/22: Good to see you around, Steve! Just installing Fusion on my new laptop to enjoy a round of Lunar The Silver Star once again :)
zyrobs, 00:32 CET, 2014/03/08: I would but I can't figure out how Twitter works. Typical Web2.0 BS, optimized for stupid people...
King, 16:59 CET, 2014/02/26: Followed!
sith-smasher, 14:46 CET, 2014/02/22: A sign of Snakey; good that you are ok man! I hope life is treating you better than before. Peace.
Snake, 06:01 CET, 2014/02/20: Everybody in the world follow me on twitter @RealSteveSnake - just because.
King, 20:57 CET, 2014/02/17: SNAKKEEEEEEEE! :D
Snake, 19:21 CET, 2014/02/16: *waves*
King, 18:49 CET, 2014/02/15: Awesome, let him know we miss him and that we're glad he's okay! :)
RSS feed Wiki RSS feed Articles RSS feed Forums