Re: Fun with 6502 Assembler
Oh, yes, that one is nicer than mine! Shorter, too: PHA / PLA is one byte. I could actually get away with omitting the CLC, since I happen to know that my decimal number is never going to exceed 3 digits so C will always be 0 from the preceding ROL.
I'm going to have to go through a whole heap of code now, looking for all the places where I could have used the stack instead of a temporary location .....
__________________
If I have seen further than others, it is because I was standing on a pile of failed experiments.
|