Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Architettura degli elaboratori e delle reti > Non Capisco Proprio
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
xl883
.novellino.

User info:
Registered: Jun 2003
Posts: 2 (0.00 al dì)
Location:
Corso: informatica
Anno:
Time Online: 5:52:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Non Capisco Proprio

Ciao a Tutti ho un quessito che mi pervade e non riesco a venirne fuori....Sto studiando per dare l'esame e ho scaricato da qui l'utilissima raccolta di appunti.Sono andato a guardare ul sito del prof e alcuni esercizi parlano di robe del tipo dire cosa succede in un tal caso i codici operativi sono: sw: 43, beq: 4, addi: 8, add (funct) 32, sub (funct) 34.
La domanda è come li devo tradurre in binaRIO?
Dove posso trovare qualche esercizio di svolto passo passo che mi faccia capire?
Vi prego Aiuto sto sclerando.
Grazie mille a tutti

29-06-2007 13:57
Click Here to See the Profile for xl883 Click here to Send xl883 a Private Message Find more posts by xl883 Add xl883 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dede
.novellino.

User info:
Registered: Oct 2006
Posts: 8 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 16:28:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Guardati ste slides, a me è sembrato abbastanza chiaro:

Slides linguaggio macchina

beq $s1, $s2, 100

Se hai un beq (opcode=4), dovrai per prima cosa ricordarti che il beq è una istruzione di tipo I e che quindi dovrai attenerti a questo schema:

--OP------RS-------RT---INDIRIZZO
(6bit)---(5bit)---(5bit)---(16bit)

Una volta che ti ricordi questo, devi solamente convertire numeri da decimale a binario:

OP(6bit)=4 (in decimale)=000100 (in binario)

Per sapere il numero di registro di $s1 e $s2, guardati la tabella "convenzione registri MIPS" in questo compitino: tabella

RS(5bit)=17 (in decimale)=10001 (in binario)
RT(5bit)=18 (in decimale)=10010 (in binario)
INDIRIZZO(16bit)=100 (in decimale)=0000 0000 0001 1001 (in binario)

29-06-2007 19:04
Click Here to See the Profile for dede Click here to Send dede a Private Message Find more posts by dede Add dede to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 09:59.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.045 seconds (59.52% PHP - 40.48% MySQL) con 26 query.