03-04-2016, 12:40 AM
(03-01-2016, 06:53 PM)Tenkarider Wrote: EDIT: man... i can do the same thing with this stuff:
bcc -> flag 0 clear
bne -> flag 1 clear
bvc -> flag 6 clear
too bad there's no branch for flags 2,3,4,5 despite i know it wouldn't make sense since i can find an use for that only due to this absurd code made from FF6 developers!
I think you're confused here. When using load operations (like LDA or LDX) bits 7 and 1 of the program register will be changed.
bit 7 is set if bit 7 is set for the loaded value. This is the Negative indicator and is for interpreting the value as signed (positive or negative)
bit 1 is set if the loaded value is 0. This is the Zero indicator and is not set by bit 1 of the loaded value.
Look for BIT or AND to test the bits of the loaded value.