Dynamic Gravity [JoshuaMK]
#5
(07-01-2019, 07:40 PM)Vega Wrote: Sorry about that, it was a simple typo.

lis r12, 0x8034
lhz r11, 0x3E80 (r12)
andi r11, r11, 0x0880 #And Immediate, Logical AND using r11 & 0x0880
cmpwi r11, 0x0880
beq- the_label

Here's a simple code I made using ASM for button activator/deactivator - http://mkwii.com/showthread.php?tid=893 (source below is for NTSC-K specific version, haven't updated that particular source to use macros for region variances)

So I looked at your ASM in that code, and there was 2 things that confused me. First off, with this:

and r0, r11, r7 #Logically AND the contents of r11 & r0, store result into r12
cmpw r0, r7 #Compare value of r12 to r0.
beq- set_regionoption1 #If equal (activator is pressed), jump to set_regionoption1 label


^Your #notes don't even match up with the source ASM, specifically it saying your storing it into r12 when clearly it is being stored into r0, which your #notes say is being ANDed with r11.

Secondly, this isn't an andi. instruction, but a simple AND instruction. So is this the right way or do you actually use andi.? Also you typed (andi.) as (andi) which is actually incorrect.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Messages In This Thread
Dynamic Gravity [JoshuaMK] - by JoshuaMK - 07-01-2019, 03:37 AM
RE: Dynamic Gravity - by Vega - 07-01-2019, 03:15 PM
RE: Dynamic Gravity - by JoshuaMK - 07-01-2019, 04:21 PM
RE: Dynamic Gravity - by Vega - 07-01-2019, 07:40 PM
RE: Dynamic Gravity - by JoshuaMK - 07-02-2019, 06:15 AM
RE: Dynamic Gravity - by Vega - 07-02-2019, 02:05 PM
RE: Dynamic Gravity - by JoshuaMK - 07-02-2019, 05:55 PM
RE: Dynamic Gravity - by Vega - 07-02-2019, 06:43 PM
RE: Dynamic Gravity - by JoshuaMK - 07-02-2019, 08:11 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)