Basically, when I load in from a save I obviously want inventory backed up and you to have the items you gained when you restart.
Right now I'm doing this for keys picked up. Each bit represents a key and if you have the key, it displays an icon for the key:
But is there any way at all I could do that without having to LDA or is that simply impossible?
Right now I'm doing this for keys picked up. Each bit represents a key and if you have the key, it displays an icon for the key:
Code:
DetermineInventory:
LDA backedUpKeyPickups
AND #%00000001
BEQ .k2
JSR DrawKeyOne
.k2:
LDA backedUpKeyPickups
AND #%00000010
BEQ .k3
JSR DrawKeyTwo
LDA backedUpKeyPickups
AND #%00000001
BEQ .k2
JSR DrawKeyOne
.k2:
LDA backedUpKeyPickups
AND #%00000010
BEQ .k3
JSR DrawKeyTwo
But is there any way at all I could do that without having to LDA or is that simply impossible?