On 2/18/2021 at 3:16 PM, JimmyDansbo said:
I think it is a very good idea to give the option of having print_str not convert anything, and I believe that it should fit. Thanks for the suggestion (I had actually thought of it, but forgot about it again).
edit: I have made the change, and it takes up only 2 bytes. ?
You can use the bit instruction to reduce the size of that macro. First, change the flag to be
.A = Convert string (0 = no conversion, $80 = convert)
Then, use
bit r2l
bpl +
You won't need to save the .Y register.