I guess that building a function to compare the behavior byte should be a simple way.
Try this function:
push {lr}
ldr r3, =0x8055C75
bl bx_r3
cmp r0, #0x[behavior byte] @Change it to your behavior byte to compare
beq set_1
mov r1, #0
b back
set1:
mov r1, #1
back:
ldr r0, =0x20370c0
strh r1, [r0]
pop {pc}
.ltorg
bx_r3: bx r3
Change the number in the line with comment to your behavior byte to compare. And then, compile it and callasm (+1).
It will store the result (0=not equal, 1=equal) to variable 0x8004
(Not tested, so please try it on your own)