Moon jump ASM for 3d games

Started by Patedj, March 11, 2011, 05:52:38 AM

Previous topic - Next topic

Deathwolf

lolz

Patedj

I'm now back on Eldar Saga.
See post
http://wiird.l0nk.org/forum/index.php/topic,7858.msg66306.html#msg66306

Now that I can find the addresses properly, I can start working on eldar saga again.
You can pm me, I've got time for your troubles.

dcx2

bl is not a conditional branch.  it's not a "branch less than".  That's blt-

bl is an unconditional branch.  It always takes the branch regardless of the CR.  bl = Branch and Link.  It is just like a normal b, except the address of the next instruction is placed into the LR.  This is why mflr gives us a pointer to the data.

Deathwolf

Quote from: dcx2 on March 20, 2011, 01:43:41 AM
bl is not a conditional branch.  it's not a "branch less than".  That's blt-

bl is an unconditional branch.  It always takes the branch regardless of the CR.  bl = Branch and Link.  It is just like a normal b, except the address of the next instruction is placed into the LR.  This is why mflr gives us a pointer to the data.
Ok but isn't the mflr for moving ASM datas? And what does the bl branch exactly do?

lhz r12,0(12)
andi r12,r12 0x3EF0
blt- THE END
---ASM DATA---

THE END:
original instruction
lolz

Patedj

The bl will branch in the 4e000000 that is loaded.
You can pm me, I've got time for your troubles.

dcx2

The bl will branch over the 4e000000 that is loaded and put a pointer to the 4e000000 into the LR

Deathwolf

Quote from: dcx2 on March 20, 2011, 04:43:57 PM
The bl will branch over the 4e000000 that is loaded and put a pointer to the 4e000000 into the LR
For what is the Link Register? Why couldn't it be done with just standart instructions?
lolz

Patedj

it's just easier this way no, deathwolf?
Anybody have de Blob 2? Moon Jump on de blob2 seems to be quite complicated... I've been trying to figure it out... they are all wierd...
You can pm me, I've got time for your troubles.

Patedj

#53
Why doesn't this work?
4E00000C 00000000
C22B7114 00000004
48000009 42C80000
7D8802A6 C02C0000
C0030054 EC00082A
D0030054 00000000

14000000 BF800000
2861F69A 00000400
14000000 42C80000
E0000000 80008000

Hook Address 802B7114:  D0030054 stfs   f0,84(r3)

bl NO_DATA
.float 0x100
NO_DATA:
mflr r12
lfs f1,0(r12)
lfs f0,84(r3)
fadds f0,f0,f1
stfs   f0,84(r3)

And this...
042B7114 80850000
2861F69A 00000400
C22B7114 00000005
9421FFB0 BDC10008
39C00009 61CE0457
80850000 7C847214
90850000 81C10008
38210050 00000000
E0000000 80008000

802B7114   
stwu r1,-80(r1)    
stmw r14,8(r1)    
li r14,0011
ori r14,r14,1111
lwz   r4,0(r5)
add r4,r4,r14
stw   r4,0(r5)
lwz r14,8(r1)
addi r1,r1,80
You can pm me, I've got time for your troubles.

dcx2

"doesn't work"?

Freezes?

Does nothing?

Does insane things?

Patedj

You can pm me, I've got time for your troubles.