The issue is that "9th bit" of the carry is causing more code that I want. For example:
Code: Select all
clc
lda $c000
ror
bcs !carry_set+
!carry_clear:
jmp !+
!carry_set:
clc
adc #$80
!:
sta $c000
Bottom line, I only want to rotate the 8 bits of an address left/right and don't care about the carry. But, obviously, I have to deal with it somehow.
Would it be more efficient to use a SHIFT but then check to see if I need to set the MSB or LSB? Not sure on that one.
Advice would be appreciated.
Thanks!