In Zelda, there is 1 register that holds dungeons 1-8 collected maps.
what I'm trying to do, is perform a type of cmp, to determine if a specific levels map has been obtained, if so, branch to my new asm, if not, just continue on.
example.
$668 bits
80: level-8
40: level-7
20: level-6
10: level-5
08: level-4
04: level-3
02: level-2
01: level-1
The asm looks at an 8 byte table.
01 02 04 08 10 20 40 80
This is what I have.
thanks for looking.
what I'm trying to do, is perform a type of cmp, to determine if a specific levels map has been obtained, if so, branch to my new asm, if not, just continue on.
example.
$668 bits
80: level-8
40: level-7
20: level-6
10: level-5
08: level-4
04: level-3
02: level-2
01: level-1
The asm looks at an 8 byte table.
01 02 04 08 10 20 40 80
This is what I have.
Code:
LDA $10. ;current level 01-08
SEC
SBC #$01
AND #$07
TAX
LDA $668. ; collected map(s)
ORA $E6BE,x. ;8 byte bit pointer table
this is where I get problems
BNE to mu custom sub routine
this point, regular asm continued.
SEC
SBC #$01
AND #$07
TAX
LDA $668. ; collected map(s)
ORA $E6BE,x. ;8 byte bit pointer table
this is where I get problems
BNE to mu custom sub routine
this point, regular asm continued.
thanks for looking.