Event bits in ASM and World Map Load events
#2
You can use the BIT instruction. BIT #$01 would check first bit, BIT #$02 the second, BIT #$04 the third and so on. Following the BIT instruction, you can have a BEQ (result 0, bit not set) or a BNE (result 1, bit set).

As for loading event bit, you can use LDA. This will load either one or two bytes depending if the accumulator is set to 8 or 16 bits. You want the first option.
Reply


Messages In This Thread
RE: Event bits in ASM and World Map Load events - by madsiur - 03-05-2015, 01:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Map can't load...size problem? Gestahl 5 4,159 04-14-2020, 03:35 PM
Last Post: Gestahl
  Event Bits vs. Memory Address PowerPanda 4 5,149 12-01-2017, 11:38 PM
Last Post: m06
  load npc into battle asm help Gi Nattak 10 11,794 01-10-2014, 03:30 PM
Last Post: Gi Nattak
  Event bits beyond $1EDF Xontract 4 5,730 11-14-2012, 02:25 AM
Last Post: Xontract
  Character's Palettes on the Save/Load, Party Switch, and Shop Menu Fenrir 7 9,219 06-12-2012, 03:03 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)