Advertisement
Zeda

Axe Sound Routine Optimised?

Dec 24th, 2011
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. p_FreqOut:
  3.     xor a
  4. __FreqOutLoop1:
  5.     push    bc
  6.         xor     %00000011
  7.     ld  e,a
  8. __FreqOutLoop2:
  9.     ld  a,h
  10.     or  l
  11.     jr  z,__FreqOutDone
  12.     cpd
  13.     ld  a,e
  14.         scf
  15.     jp  pe,__FreqOutLoop2
  16. __FreqOutDone:
  17.     pop bc
  18.     out ($00),a
  19.     ret nc
  20.     jr  __FreqOutLoop1
  21. __FreqOutEnd:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement