Topic: Ear Shaver questions and concerns
I'm not a person who knows assembly, but I have a question about the Ear Shaver engine.
How to you get the song to Loop?
At the end of the assembly version, I see
music_data:
defw song,0
followed later on by
loop:
defb $01,$01,$01
defb $00
defw loop
But I don't know how to use the loop portion to make the song loop endlessly.
I also noticed another issue with the code produced by 1tracker.
In 1Tracker, I exported a song written with the Ear Shaver engine and was pretty happy with the results, but there seemed to be a large difference from the TAP vs the Assembly. The assembly language version seems the fail on multiple notes being played simultaneously, while the TAP version works exactly as the tracker had it arranged.
So when I compiled the defective version, I did a disassembly on it and I found a difference at the very start of the code.
The working Tap version (export - Tap via 1tracker), produced
begin:
ld hl,music_data
rlca
add a,b
call play
ret
While the assembly version (export- assembly via 1 tracker) produced
begin:
ld hl,music_data
call play
ret
When I added those two lines in, I got good results, so I wanted to point out that the assembly version seems to drop those commands.
As a bonus question, I'd like to ask to see if there was an easy way to get the border flashing with every note, which I found very attractive when playing a song.
Thanks
Andy