Language…
12 users online: BabyBlueFord, Dave Chipmunk, Link13, Lord Rhy, rafaelfutbal, Retro Master HD, Rykon-V73,  Saphros, Tulip Time Scholarship Games,  Valentine, Xample, Zute - Guests: 78 - Bots: 277
Users: 65,972 (2,172 active)
Latest user: delion902

AddMusicK ASM oddity

I am having a strange thing going on with AMK.
I am trying to code in custom commands in the commands.asm file, adding a 11th entry in command $F4's dw table. So $F4 $0A. It works... but for some reason, the song also skips to the start of the "/" loop when my test song hits that command.

I even changed it to a one-line code as a test:
Code
SubC_A:
mov $51, #$FF
ret
The tempo does go up to max, but the song skips to the start of the loop.

Using commands listed in the hex references help files doesnt cause this, and still work as intended.
You need to restore x:

Code
SubC_A:
mov $51, #$FF
mov x, $46
ret