Jump to content

[Help] Assembly Mips


Solomun

Recommended Posts

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

Link to comment
Share on other sites

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

Odd /even  : compare last digit 0-1

 

Advice: dont lbu.Just lb

 

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...