3DClockRandom Homebrew: 3DClock
clock
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

beqz vs beqzl in mips

Forum rules
Any post not directly related to programming will be moderated.
Do not request people to code something for you.
Avoid posting messages that do not bring anything to the conversation. We want the threads in this subforum to stay focused.

beqz vs beqzl in mips

Postby thecobra » Thu Jul 12, 2012 2:53 pm

Hi,

I know in mips assembly, Beqz = Branch to address/location if the variable = 0 but what is the diffrence from this one vs the Beqzl ?

Online i found it to mean Branch on Equal to Zero Likely but no reall programming mean of what this mean. Can anyone inlight me please because i saw this several time in prx i been looking at and there a part that doesn make sense if they do the same.


it something like this:

Code: Select all
location_0001:
....
beqz $t0, location_0002
lw $a0, 0($s1)
....

location_0002:
beqzl $t0, location_0001
lw $s0, 0($s1)
....


I get what it doing( to best of my understanding) but i still find it redolent.

Thanks
Image
Tools

PSP Hack Device
PSVita 1.80 eCFW <Thank to wololo Community>
PSVita 1.67 vHBL Dead :(
PSP FAT 6.60 - CFW pro
thecobra
HBL Collaborator
 
Posts: 167
Joined: Thu Feb 24, 2011 7:50 pm

Re: beqz vs beqzl in mips

Postby some1 » Thu Jul 12, 2012 3:26 pm

It means that the delay slot is only executed if the branch is true.
way to keep a secret malloxis...erm jeerum
Hmm, a demo user mode exploit doesn't seem as important anymore, I wonder why... xP
some1
HBL Collaborator
 
Posts: 146
Joined: Sun Dec 12, 2010 4:19 am

Re: beqz vs beqzl in mips

Postby thecobra » Thu Jul 12, 2012 3:37 pm

some1 wrote:It means that the delay slot is only executed if the branch is true.



oh so that means that if branch is false then the next instruction is skip over and it execute the third instruction?

so in other word:

Code: Select all
beqzl $t0, local_random
sw $t1, 0($t1)
lw  $a0, 0($t1)


So in this example. If $t0 == 0 then it execute the sw instruction and then branch else it go straight to lw?

while in if beqzl was beqz, it will execute the next instruction even without the branch being true?
Image
Tools

PSP Hack Device
PSVita 1.80 eCFW <Thank to wololo Community>
PSVita 1.67 vHBL Dead :(
PSP FAT 6.60 - CFW pro
thecobra
HBL Collaborator
 
Posts: 167
Joined: Thu Feb 24, 2011 7:50 pm

Re: beqz vs beqzl in mips

Postby FrEdDy » Thu Jul 12, 2012 4:41 pm

Exactly.
Non-likely branch instructions execute the instruction in the delay slot no matter what.
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES
User avatar
FrEdDy
HBL Collaborator
 
Posts: 349
Joined: Mon Sep 27, 2010 7:08 pm

Re: beqz vs beqzl in mips

Postby thecobra » Thu Jul 12, 2012 11:16 pm

OK thanks guys
Image
Tools

PSP Hack Device
PSVita 1.80 eCFW <Thank to wololo Community>
PSVita 1.67 vHBL Dead :(
PSP FAT 6.60 - CFW pro
thecobra
HBL Collaborator
 
Posts: 167
Joined: Thu Feb 24, 2011 7:50 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests