saturdayxiii
Member
Trying to figure out the Subtract Macro, but I can't get it to do anything other than subtract one.
I'm trying to get a lock to remove 5 keys instead of one. So I use:
SubtractValue #$02, myKeys, #$05, #$00
But that only subtracts 1. Changing arg0, 2, or 3 all results in subtracting 1. I can get it to subtract 10 by using
SubtractValue #$02, myKeys+1, #$01, #$00
But it behaves the same way, only subtracting 10 regardless of the arg variables.
Is this a bug or am I just using the macro wrong?
I'm trying to get a lock to remove 5 keys instead of one. So I use:
SubtractValue #$02, myKeys, #$05, #$00
But that only subtracts 1. Changing arg0, 2, or 3 all results in subtracting 1. I can get it to subtract 10 by using
SubtractValue #$02, myKeys+1, #$01, #$00
But it behaves the same way, only subtracting 10 regardless of the arg variables.
Is this a bug or am I just using the macro wrong?