ASM fail

Started by Deathwolf, August 05, 2010, 08:48:20 PM

Previous topic - Next topic

Deathwolf

nvm load into address is enough :)
thanks alot dcx2
lolz

Deathwolf

dcx2 I've tried your code but it still freez.
it want load into the first address but not in other.

your code:

lis r12,0x8003
ori r12,r12,0x5F94
lis r10,0x6000
stw r10,0(r12)
lis r12,0x8003
ori r12,9,0x6430
lis r10,0xA25F
ori r10,r10,0x0002
stw r10,0(r12)
lis r12,0x8003
ori r12,7,0x5F88
lis r10,0x3803
ori r10,r10,0x0001
stw r10,0(r12)

C2035F94 00000008
3D808003 618C5F94
3D406000 914C0000
3D808003 612C6430
3D40A25F 614A0002
914C0000 3D808003
60EC5F88 3D403803
614A0001 914C0000
60000000 00000000

maybe wrong registers?
lolz

Deathwolf

hmm okay I've done another code:

C2035F88 00000008
3D808003 618C5F94
3D406000 914C0000
3D208003 61296430
3D00A25F 61080002
91090000 3CE08003
60E75F88 3CC03803
60C60001 90C70000
60000000 00000000
D2035F50 0000000A
40820014 7FC3F378
38800072 4BFFEF99
48000080 28000010
40820014 7FC3F378
38800011 4BFFEF81
48000068 A09F0008
548304FF 41820058
3C630001 3D808003
618C5F94 3D406000
914C0000 00000000

lis r12,-32765
ori r12,r12,24468
lis r10,24576
stw r10,0(r12)
lis r9,-32765
ori r9,r9,25648
lis r8,-23969
ori r8,r8,2
stw r8,0(r9)
lis r7,-32765
ori r7,r7,24456
lis r6,14339
ori r6,r6,1
stw r6,0(r7)
nop
.word 0x0000
lfs f16,24400(r3)
.word 0x0000
bne- 0x0000
mr r3,r30
li r4,114
bl 0x0000
b 0x0000
cmplwi r0,16
bne- 0x0000
mr r3,r30
li r4,17
bl 0x0000
b 0x0000
lhz r4,8(r31)
rlwinm. r3,r4,0,19,31
beq- 0x0000
addis r3,r3,1
lis r12,-32765
ori r12,r12,24468
lis r10,24576
stw r10,0(r12)
lolz

AlexWong

C0000000 00000005
3D808003 3D406000
914C5F94 3D40A25F
614A0002 914C6430
3D403803 614A0001
914C5F88 4E800020

Try this.
Unsatisfied w/o cheats.

Deathwolf

yep it's the same^^
but thx and good work  ;)
lolz

AlexWong

Why do you wanna ASM code instead of 32 bits Write code? ASM codes will make the simple codes be complicated. ???
Unsatisfied w/o cheats.

hetoan2

Are you sure those registers are free?


Check out my site with codes obviously...
http://hetoan2.com/

and youtube...
http://youtube.com/hetoan2

Deathwolf

r12,r10,r9,r8,r7,r6 are free
lolz

hetoan2

why not use a stack frame to make sure :\

00000000 != free


Check out my site with codes obviously...
http://hetoan2.com/

and youtube...
http://youtube.com/hetoan2

Deathwolf

stack frame? o,o

00000000 is free? okay lol...
r12 have sometimes 80XXXXXX
lolz

biolizard89

Quote from: Deathwolf on August 09, 2010, 02:18:27 PM
stack frame? o,o

00000000 is free? okay lol...
r12 have sometimes 80XXXXXX
!= means not equal.

Deathwolf

I didn't use any register with 00000000
lolz

hetoan2

why not use a stack frame... change the registers to 14 - 31

then use this at the beginning:

stwu r1,-80(r1) #allocate room for r14-r31
stmw r14,8(r1) #load r14-r31 into stackframe


and this at the end:

lmw r14,8(r1) #read registers r14 to r31 from stack
addi r1,r1,80 #free stackframe


Check out my site with codes obviously...
http://hetoan2.com/

and youtube...
http://youtube.com/hetoan2

Deathwolf

you mean, with this I can use r14-r31? :eek:
lolz

hetoan2



Check out my site with codes obviously...
http://hetoan2.com/

and youtube...
http://youtube.com/hetoan2