cj7hawk
Veteran Member
Well, you can save another 4T by the following;
to
Since that will do the same, will clear the carry ( at the next add, not that it matters ) and will bypass any pre-existing state in A.
XOR A ; 4T - Used to hold the DAC output. Start off at 0.
LD H,msb(WAVETBL) ; 7T - This table should be page aligned.
LD L,D ; 4T - Voice 3 Integer byte.
ADD A,(HL) ; 7T - Index wave table for Voice 3 Integer byte.
to
; XOR A ; Eliminate this line.
LD H,msb(WAVETBL) ; 7T - This table should be page aligned.
LD L,D ; 4T - Voice 3 Integer byte.
LD A,(HL) ; 7T - Index wave table for Voice 3 Integer byte.
Since that will do the same, will clear the carry ( at the next add, not that it matters ) and will bypass any pre-existing state in A.
Last edited: