Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Mips experts?

Hi.
Im trying to edit some information in a test app.
Could someone tell me in which line the assembler increases a value?
...actually the program uses the above code when the player picks up a health pack..
[code]
break (00001) # 01747588:0000004d
(movci) zero, zero, zero # 0174758c:00000241
syscall (00000) # 01747590:0000000c
srl s0, zero, 1 # 01747594:00008042
movn zero, zero, zero # 01747598:0000004b
lb zero, $0027(zero) # 0174759c:80000027 zero=$00000027
(movci) zero, zero, zero # 017475a0:00000081
movn zero, zero, zero # 017475a4:0000004b
mthi zero # 017475a8:00000051
srl zero, at, 1 # 017475ac:00010042
syscall (00002) # 017475b0:0000008c
mfhi zero # 017475b4:00000090
movn zero, zero, zero # 017475b8:0000000b
sync # 017475bc:000000cf
syscall (00004) # 017475c0:0000010c
lb zero, $0021(zero) # 017475c4:80000021 zero=$00000021
lb zero, $1f2b(zero) # 017475c8:80001f2b zero=$00001f2b
movn zero, zero, zero # 017475cc:0000000b
sync # 017475d0:000000cf
syscall (00005) # 017475d4:0000014c
lb zero, $0b21(zero) # 017475d8:80000b21 zero=$00000b21
syscall (00006) # 017475dc:0000018c
srl zero, v0, 1 # 017475e0:00020042
lb zero, $0a68(zero) # 017475e4:80000a68 zero=$00000a68
syscall (00007) # 017475e8:000001cc
mthi zero # 017475ec:00000211
sq ra, $ffc6(ra) # 017475f0:7fffffc6
srl zero, v0, 1 # 017475f4:00020042
sllv zero, zero, zero # 017475f8:00000044
movn zero, zero, zero # 017475fc:0000010b
sq ra, $ffe7(ra) # 01747600:7fffffe7
syscall (00007) # 01747604:000001cc
mthi zero # 01747608:00000251
sq ra, $ffc6(ra) # 0174760c:7fffffc6
srl zero, v1, 1 # 01747610:00030042
lb zero, $06e8(zero) # 01747614:800006e8 zero=$000006e8
syscall (00007) # 01747618:000001cc
mthi zero # 0174761c:00000251
sq ra, $ffc6(ra) # 01747620:7fffffc6
srl zero, v1, 1 # 01747624:00030042
mthi zero # 01747628:00000291
movn zero, zero, zero # 0174762c:0000000b
sync # 01747630:000002cf
srl zero, v1, 1 # 01747634:00030042
lb zero, $04a7(zero) # 01747638:800004a7 zero=$000004a7
syscall (00007) # 0174763c:000001cc
mthi zero # 01747640:00000311
srav zero, zero, zero # 01747644:00000347
movn zero, zero, zero # 01747648:0000000b
sync # 0174764c:0000038f
srl zero, v1, 1 # 01747650:00030042
mtlo zero # 01747654:00000153
syscall (0000f) # 01747658:000003cc
movn zero, zero, zero # 0174765c:0000000b
sync # 01747660:000002cf
mflo zero # 01747664:00000092
srav zero, zero, zero # 01747668:000002c7
movn zero, zero, zero # 0174766c:0000000b
sync # 01747670:000002cf
srav zero, zero, zero # 01747674:00000407
movn zero, zero, zero # 01747678:0000014b
dsrav zero, zero, zero # 0174767c:00000097
sq ra, $ffeb(ra) # 01747684:7fffffeb
lb zero, $12eb(zero) # 0174768c:800012eb zero=$000012eb
movn zero, zero, zero # 01747690:0000000b
sync # 01747694:000000cf
syscall (00011) # 01747698:0000044c
lb zero, $01a1(zero) # 0174769c:800001a1 zero=$000001a1
syscall (00007) # 017476a0:000001cc
mthi zero # 017476a4:00000311
srav zero, zero, zero # 017476a8:00000487
movn zero, zero, zero # 017476ac:0000000b
sync # 017476b0:0000038f
srl zero, v0, 0 # 017476b4:00020002
lb zero, $102b(zero) # 017476b8:8000102b zero=$0000102b
movn zero, zero, zero # 017476bc:0000000b
sync # 017476c0:000000cf
syscall (00013) # 017476c4:000004cc
lb zero, $0221(zero) # 017476c8:80000221 zero=$00000221
movn zero, zero, zero # 017476cc:0000000b
sync.p # 017476d0:0000050f
lb zero, $0e68(zero) # 017476d4:80000e68 zero=$00000e68
syscall (00015) # 017476d8:0000054c
movn zero, zero, zero # 017476dc:0000000b
sync.p # 017476e0:0000050f
srl zero, v0, 0 # 017476e4:00020002
lb zero, $0d2b(zero) # 017476e8:80000d2b zero=$00000d2b
lb zero, $0ceb(zero) # 017476ec:80000ceb zero=$00000ceb
movn zero, zero, zero # 017476f0:0000000b
sync # 017476f4:000000cf
syscall (00016) # 017476f8:0000058c
lb zero, $01a1(zero) # 017476fc:800001a1 zero=$000001a1
syscall (00007) # 01747700:000001cc
mthi zero # 01747704:00000311
srav zero, zero, zero # 01747708:000005c7
movn zero, zero, zero # 0174770c:0000000b
sync # 01747710:0000038f
srl zero, v0, 0 # 01747714:00020002
lb zero, $0a2b(zero) # 01747718:80000a2b zero=$00000a2b
movn zero, zero, zero # 0174771c:0000000b
sync # 01747720:000000cf
syscall (00018) # 01747724:0000060c
lb zero, $01a1(zero) # 01747728:800001a1 zero=$000001a1
syscall (00007) # 0174772c:000001cc
mthi zero # 01747730:00000311
srav zero, zero, zero # 01747734:00000647
movn zero, zero, zero # 01747738:0000000b
sync # 0174773c:0000038f
srl zero, v0, 0 # 01747740:00020002
lb zero, $076b(zero) # 01747744:8000076b zero=$0000076b
movn zero, zero, zero # 01747748:000000cb
lb zero, $00e8(zero) # 0174774c:800000e8 zero=$000000e8
movn zero, zero, zero # 01747750:0000000b
sync # 01747754:000000cf
syscall (0001a) # 01747758:0000068c
lb zero, $0161(zero) # 0174775c:80000161 zero=$00000161
syscall (0001b) # 01747760:000006cc
movn zero, zero, zero # 01747764:000000cb
movn zero, zero, zero # 01747768:0000000b
sync # 0174776c:0000038f
srl zero, v0, 0 # 01747770:00020002
lb zero, $046b(zero) # 01747774:8000046b zero=$0000046b
movn zero, zero, zero # 01747778:0000000b
sync # 0174777c:000000cf
syscall (0001c) # 01747780:0000070c
lb zero, $0361(zero) # 01747784:80000361 zero=$00000361
movn zero, zero, zero # 01747788:000000cb
lb zero, $01a8(zero) # 0174778c:800001a8 zero=$000001a8
syscall (00007) # 01747790:000001cc
mthi zero # 01747794:00000311
movn zero, zero, zero # 01747798:000000cb
movn zero, zero, zero # 0174779c:0000000b
sync # 017477a0:0000038f
srl zero, v0, 0 # 017477a4:00020002
lb zero, $012b(zero) # 017477a8:8000012b zero=$0000012b
syscall (0001b) # 017477ac:000006cc
movn zero, zero, zero # 017477b0:000000cb
movn zero, zero, zero # 017477b4:0000000b
sync # 017477b8:0000038f
srl zero, v0, 0 # 017477bc:00020002
nop # 017477c0:00000000
break (00001) # 017477c4:0000004d
break (00001) # 017477c8:0000004d
mthi zero # 017477cc:00000051
nop # 017477d0:00000000
nop # 017477d4:00000000
j $07d1e080 # 017477d8:09f47820
jr zero # 017477dc:00000008
nop # 017477e0:00000000

[/code]

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : Hi.
    : Im trying to edit some information in a test app.
    : Could someone tell me in which line the assembler increases a value?
    : ...actually the program uses the above code when the player picks up
    : a health pack..

    Where did you get this output from? And why is there all zero, zero, zero?
    I don't recognise the syntax, nor the instructions tbh.
    (But then again, I'm only familair with NASM syntax)
    Usually, modifying a value goes through a MOV command.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.