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 > [architettura]comando jal
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[architettura]comando jal

ciao ragazzi!
spero che voi mi possiate aiutare!!
allora il mio problema è questo:
io so che il comando jal è composto da 32 bit come tutti del resto, ma c'è una cosa che non riesco a capire!!
nel bit field 25-0 ci va il target!ma..il target è l indirizzo dell istruzione a cui salta o cosa??
per esempio...
[0x0040003c] 0x0c100017 jal 0x0040005c [Foglia] ; 31: jal Foglia

il codice in esadecimale di jal è 0x0c100017
quindi in binario diventa:
0000-1100-0001-0000-0000-0000-0001-0111
i primi sei bit (da sinistra) sono per l opcode(0x3) mentre i restanti sono x il target!
ma questo 00-0001-0000-0000-0000-0001-0111
che cosa vuol dire?
non corrisponde a nessun indirizzo del text segment o data segment!
chi mi puo' aiutare??
grazie mille a chi mi sa dare una risposta!!

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

06-07-2004 14:40
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

I bit [25-0] sono l'indirizzo in memoria a cui viene esteso il segno per 2 posizioni e a cui viene impostato il Program Counter già aumentato di 4 (o 1 parola). Questà è la teoria..

Nel caso pratico devi fare un estensione del segno di 00-0001-0000-0000-0000-0001-0111 (quindi 0000-0001-0000-0000-0000-0001-0111).. che però non cambia l'indirizzo...
per caso 32 bit dopo c'è qualcosa? (32 bit-> 4 parole (1 parola -> 8 bit)). Magari è già pensato aumentato di 4 parole... Anche se non dovrebbe perchè dovrebbe essere una cosa hardware, non del compilatore...

06-07-2004 16:17
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sicuro che 0x0c100017 sia il codice della jal ?

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

06-07-2004 16:19
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
sicuro che 0x0c100017 sia il codice della jal ?


Dovrebbe essere il codice della jal compreso dell'indirizzo di salto.. a quanto ho capito da quello che ha scritto..

06-07-2004 16:20
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si esatto è il codice dell istruzione!
mentre quello alla sua sinistra è l indirizzo nel text segment!
cmq si nel bit field 25-0 ci va il target, l indirizzo dell istruzione a cui salta!
e questo bit field corrisponde a
00-0001-0000-0000-0000-0001-0111
che non corrisponde all indirizzo a cui dovrebbe saltare..o meglio..non riesco a tirarlo fuori da questi bit....

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

06-07-2004 16:28
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [architettura]comando jal

concordo, ho verificato :D

suo ---> 00001100000100000000000000010111


mio ---> 00001100000100000000000000001001

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

06-07-2004 16:30
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

cmq quello che mi compare nel mips assembler è
[0x0040003c] 0x0c100017 jal 0x0040005c [Foglia] ; 31: jal Foglia

dove Foglia è l etichetta del blocco di istruzioni a cui salta!

Foglia:
add $t0,$a0,$a1 # $a0 + $a1
add $t1,$a2,$a3 # $a2 + $a3
sub $t2,$t0,$t1 # ($a0 + $a1) - ($a2 + $a3)

che comincia a partire dall indirizzo 0x0040005c

io non ci sto capendo + nulla...il target mi sa che si riferisce a qualcos altro..e non all indirizzo a cui salta..oppure fa qualke calcolo prima di mettere l indirizzo nel campo target!BOH!

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

06-07-2004 16:33
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: [architettura]comando jal

Originally posted by mark
concordo, ho verificato :D

suo ---> 00001100000100000000000000010111


mio ---> 00001100000100000000000000001001

Quindi?

06-07-2004 16:33
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mi sa che devi sommare l'offset o BASE = 0x00400000 dal quale parte lo SPIM

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

Last edited by mark on 06-07-2004 at 16:38

06-07-2004 16:34
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusami mark...ma ke hai fatto?

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

06-07-2004 16:34
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mark..no...
il text segment parte da 0x00400000..
e poi nei bit
00-0001-0000-0000-0000-0001-0111
se volessi portarlo in base 10 mi vien fuori un 2^20=1048576
più 16+4+2+1=1048599....BOH!!!

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

Last edited by karmo on 06-07-2004 at 16:39

06-07-2004 16:37
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho corretto, andavo a memoria

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

06-07-2004 16:39
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karmo
.illuminato.

User info:
Registered: Feb 2004
Posts: 182 (0.02 al dì)
Location: milano
Corso: informatica
Anno: 3
Time Online: 19:34:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

come si fa a allegare un file?cosi magari se volete ve lo studiate!;P
e mi trovate la soluzione!!:D

__________________
"ki ha scritto queste stronzate!!??" disse il cieco toccando una grattugia!

06-07-2004 16:43
Click Here to See the Profile for karmo Click here to Send karmo a Private Message Visit karmo's homepage! Find more posts by karmo Add karmo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
superfabius
.grande:maestro.

User info:
Registered: Nov 2002
Posts: 1519 (0.18 al dì)
Location:
Corso:
Anno:
Time Online: 37 Days, 15:58:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

c'e' un elenco dei capitoli da studiare per il compito di archi?

06-07-2004 16:44
Click Here to See the Profile for superfabius Click here to Send superfabius a Private Message Find more posts by superfabius Add superfabius to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se quello è il copia e incolla della seconda colonna del programma SPIM mi viene il dubbio che l'indirizzo si riferisca a quello fisico del PC e non a quello virtuale dello SPIM

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

06-07-2004 16:46
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:20.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.061 seconds (69.28% PHP - 30.72% MySQL) con 26 query.