| KOM #1 | |
|
|
Author | Message |
---|
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: KOM #1 Mon Oct 04, 2010 7:21 pm | |
| What is the value at address 08800000 after running this subroutine
Lui t0 $880 Ori t1 0 $1337 Ori t2 0 2 Mult t1 t2 Mflo t1 Addi t2 0 $FFFF Sub t2 t2 t1 Sw t2 0(t0) Jr ra Nop
Please read the sticky post in this section.
Last edited by -LeetGamer- on Tue Oct 05, 2010 10:31 am; edited 1 time in total | |
|
| |
Emu
Posts : 21 Points : 29 Reputation : 0 Join date : 2010-10-04
| Subject: Re: KOM #1 Tue Oct 05, 2010 5:19 am | |
| Ori t2 0 2 Sw t2 0(t0)
needs to be fixed properly to not cause confusion.....
Ori t2 0 $2 Sw t2 $0(t0)
or
Ori t2 zero $2 Sw t2 $0(t0)
and also can be this:
Ori $t2, $zero, 0x2 Sw $t2, $zero, 0x0($t0)
I believe leet know all of this just need to make it that way for noobs dawg | |
|
| |
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: Re: KOM #1 Tue Oct 05, 2010 7:10 am | |
| - Emu wrote:
- Ori t2 0 2
Sw t2 0(t0)
needs to be fixed properly to not cause confusion.....
Ori t2 0 $2 Sw t2 $0(t0)
or
Ori t2 zero $2 Sw t2 $0(t0)
and also can be this:
Ori $t2, $zero, 0x2 Sw $t2, $zero, 0x0($t0)
I believe leet know all of this just need to make it that way for noobs dawg But confusing is fun Most people here use ps2dis and those will enter in ps2dis (The ones I gave) so if they really wanted to know they could check there, or this post now . (By the way next time you are on skype/aim You need to show me how to use IDA Pro or what ever it is called ) | |
|
| |
Mr_Waffle
Posts : 17 Points : 21 Reputation : 0 Join date : 2010-09-30 Age : 29
| Subject: Re: KOM #1 Tue Oct 05, 2010 8:56 am | |
| "Sub t2 t1" Doesnt Sub need 3 arguments? (output register - first register - second register) | |
|
| |
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: Re: KOM #1 Tue Oct 05, 2010 10:32 am | |
| Fixed | |
|
| |
Emu
Posts : 21 Points : 29 Reputation : 0 Join date : 2010-10-04
| Subject: Re: KOM #1 Tue Oct 05, 2010 2:46 pm | |
| Lui t0 $880 // Upper address 0x0000 Ori t1 0 $1337 // Value 1337 Ori t2 0 2 // Value 2 Mult t1 t2 // 1337 * 2 = 0A72 and store in Lo Mflo t1 // 0A72 is stored in t1 from Lo Addi t2 0 $FFFF // Value FFFF also -1 from the negative rule Sub t2 t2 t1 // Sub FFFF - 0A72 = F58D Sw t2 0(t0) // Stores 0x0000F58D to address 0x00000000 Jr ra // Jump register return address (end code) Nop // slot delay
| |
|
| |
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: Re: KOM #1 Tue Oct 05, 2010 2:50 pm | |
| Nope, 1337 is a hex value ($ = 0x in ps2dis) | |
|
| |
Emu
Posts : 21 Points : 29 Reputation : 0 Join date : 2010-10-04
| Subject: Re: KOM #1 Tue Oct 05, 2010 2:52 pm | |
| 1337 in hex * 2 in hex = A72....
this is the only other answer I can think of with no ps2dis help just calc:
0x0000D991
Last edited by Emu on Tue Oct 05, 2010 2:54 pm; edited 1 time in total | |
|
| |
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: Re: KOM #1 Tue Oct 05, 2010 2:54 pm | |
| - Emu wrote:
- 1337 in hex * 2 in hex = A72....
Hmmm my calculator is weird sorry -goes to check it again- edit: lmao I just checked and it gave me your value, checked again (same thing) gave me another) edit two: Still wrong but you are close, only one mistake and it might not be something you should know unless you found my accidently like me (It is a FULL 32bit value with no zeros ) | |
|
| |
Emu
Posts : 21 Points : 29 Reputation : 0 Join date : 2010-10-04
| Subject: Re: KOM #1 Tue Oct 05, 2010 3:03 pm | |
| I am positive this is right:
Lui t0 $880 // Upper address 0x0000 Ori t1 0 $1337 // Value 1337 Ori t2 0 2 // Value 2 Mult t1 t2 // 1337 * 2 = 0A72 and store in Lo Mflo t1 // 0A72 is stored in t1 from Lo Addi t2 0 $FFFF // Value FFFF also -1 from the negative rule Sub t2 t2 t1 // Sub FFFF - 0A72 = F58D Sw t2 0(t0) // Stores 0xFFFFF58D to address 0x00000000 Jr ra // Jump register return address (end code) Nop // slot delay
Last edited by Emu on Tue Oct 05, 2010 3:10 pm; edited 1 time in total (Reason for editing : added the right value) | |
|
| |
-LeetGamer- Admin
Posts : 247 Points : 397 Reputation : 4 Join date : 2010-09-29 Age : 30
| Subject: Re: KOM #1 Tue Oct 05, 2010 3:07 pm | |
| Yeah that is right Emu, make your KOM when ever you want | |
|
| |
Sponsored content
| Subject: Re: KOM #1 | |
| |
|
| |
| KOM #1 | |
|