Jump to content

Recommended Posts

Posted

Yo guys...I need some help here. I searched google but i still dont get it...

 

Lets say i got an integer into a register $t0. 

 

Q #1: How can i check if this integer is positive ($t0 >0)

 

Q #2: How can i check if this integer is odd ($t0 / 2 = 1)

Thanks in advance :P

Posted

Positive /negative: http://lmgtfy.com/?q=positive+negative+mips

Odd /even  : compare last digit 0-1

 

Advice: dont lbu.Just lb

 

[GR] Ομιχλη εχεις ρε γιοτα δεν βλεπεις τι γραφω? Δε το βρηκα στο γοογλε. Επισης πιο πολυ θελω να καταλαβω τι φαση, να μ εξηγησει καποιος...

Posted (edited)

Ma8e na diabazeis noob.

 

Poso pio masimenh trofh 8es apo ton etoimo kwdika....

 

 

Twra na sto ekshgisei kapoios .... Duskola,diabase tis diafanies me ta mask/ma8e tis entoles kai ma8e na paizeis me ta register

 

1)Gia arxh apla 8a sou pw pws stis diafanies leei oti gia na pas sto epomeno stoixeio enos pinaka kaneis +4

2)Sto binary einai dunameis tou 2.Mono to 2^0 sou dinei 1= perittos.Ara sugkrineis to telefteo pshfio.

Afou an dn mporeis na to kaneis e ,bale peps me polla Kappa apo panw

 

(Hdh s boh8hsa polu,alloi psaxnoun gia auta kai prospa8oun wres)

 

 

 

 

Ama dn mporeis na kaneis auth,kala des tin epomenh....

 

 

:dat:  :dat:  :dat:  :dat:  :dat:  :dat:  :dat:  :dat:  :dat:  :dat:

 

cvY51dJ.pngnwCYtyl.png

Edited by bravetobe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock