@Crazycolorz5 Here’s what I was talking about in your ASM topic.
In FE8 there isn’t the equivalent of IFAF or IFAT. But there are several _SETCONDITION that compare the bytes stored in some specific memory slots.
[quote][11/07/2014 01:52:39] David Hyatt: the setcondition command loads its values from data there
[11/07/2014 01:52:49] David Hyatt: according to the command’s parameters
[11/07/2014 01:53:35] David Hyatt: SETCONDITION usually loads from memory slots 0xC and 0x0
[11/07/2014 01:53:47] MarkyJoe1990: Hm.
[11/07/2014 01:56:48] MarkyJoe1990: So with my ASM, I’d have to write r0’s value into one of those spots.
[11/07/2014 01:57:11] Alfred Cm’on!: I think so?
[11/07/2014 01:57:13] MarkyJoe1990: And then Alfred would have to make a SETCONDITION thingy that compares it’s value to 1
[11/07/2014 01:57:39] David Hyatt: yeah, you could just do SETVAL 0x1 0x1
[11/07/2014 01:57:49] David Hyatt: and have your code write to slot 0xC
[11/07/2014 02:00:35] Alfred Cm’on!: brb gotta get some coffee
[11/07/2014 02:00:52] MarkyJoe1990: So then I write the value of r0 to $030004BC, and then Alfred does the _SETCONDITION thing.
[11/07/2014 02:01:05] MarkyJoe1990: $030004BC being slot 0 presumably[/quote]
_SETVAL 0x1 0x1
_SETCONDITION 0x1 0xC 0x0
Note: the ASMC wrote the data in slot C in the end, because we realized that slot 0 clears itself almost instantly. With this, I write “1” (the value of true?) in memory slot 1, then we call the ASMC and write the result in memory slot C, and compare the bytes in slots 1 and C. If they’re identical, it calls an event, if they differ, it calls another one.
Also, many many thanks to @Venno and @MarkyJoe1990 who helped me with this.