.thumb
.equ qq_bag, 0x080143D4
.equ flag_check, 0x0806E6D0
.equ loc_8014428, 0x08014428
.equ off_8014410, 0x08014410
.equ loc, qq_bag
.equ checkflag, flag_check
.equ useitem, loc_8014428
.equ flag, off_8014410
main:
ldr r0, [pc, #flag-(loc+4)]
bl +checkflag-loc
beq +useitem-loc
NOP
NOP
/*pon el número del flag en 08014410*/