«« ( Date ) »» // «« ( Thread ) »» // mips-nastava - 2003

Re: Pitanje za Gvozdena

by Gvozden Marinkovic
utorak, 18. februar 2003 - 22:52.

... ako obratis paznju CS: Disp + Ip jeste 6C6F, samo kada sam pisao resenje
zaboravio sam da dodam + Ip u objasnjenju. Ali tacan rezultat jeste 6C6F.

Ipak hvala na ispravci.

Pozdrav

Gvozden

----- Original Message -----
From: "Stojiljkovic Predrag" <lordps@tesla.rcub.bg.ac.yu>
To: "mips" <mips-nastava@titan.etf.bg.ac.yu>
Sent: Tuesday, February 18, 2003 8:31 PM
Subject: [mips-nastava] Pitanje za Gvozdena


U folijama za predavanja, vezano za izracunavanje adrese skoka, pise sledece:

Intrasegment Direct
The effective branch address is the sum of an 8- or 16-bit displacement and the
current contents of IP. When the displacement is 8 bits long, it is referred to
as a short jump. Intrasegment direct addressing is what most computer books
refer to as relative addressing because the displacement is computed "relative"
to the IP. It may be used with either conditional or unconditional branching,
but a conditional branch instruction can have only an 8-bit displacement.

U resenju ispitnog zadatka (januar 2003.) stoji sledece:

intrasegmentno direktno
CS:Disp = 6C6FH



Zar ne bi trebalo da bude: CS : IP+Disp ?????


Pedja