Re: Question regarding ASM Listing (Z8k)



Herbert Kleebauer wrote:

ftp://ftp.groessler.org/pub/chris/olivetti_m20/doc/english/Z8000_prog_guide/Z8000_prog_guide.pdf

Ok, I understand:

"@" means the data gets not loaded into the register, but into the
address the register points too (indirect adressing).

An adress enclosed in pipes "|" means that a Short Offset is read
from a place in the specified segment. For example "LDB RH4,|<<34>>%F0|
reads the data of the memoryspace %F0 from the segment 34 in the
short-offset format into the register RH4.

LD R0,XXXX(YY) means that the register R0 will be loaded with the data of
adress (XXXX + index of Register YY), So if XXXX is %4000 and the register
YY contains 4, R0 contains the data written at adress %4004.

# indicates that data is following so "LD R0,#1234" loads "1234" into R0

I understand that ldm loads each of the read words into the specified and
all the following registers

So the remaining questions are...

f) What I don't understand out of "ld FP(#~L1+%5a),r2" the ~L1 part.
What is ~L1?

g) _stkseg+~L1+%5a(fp) - does _stkseg contain an adress? is this a
function? Is this an automatic alias to a specific register? - Again
the mysterious ~L1 part.

h) ldm r0,|_stkseg+4|(sp),#4
_stkseg should be a segment adress like <<34>> or? So what does
_stkseg here? is this an alias for a base segment adress where 4 is
added then? Where is the memoryspace? shouldn't be the syntax
|<<segment>>%adress|? And then the data in the register sp gets then
added to the short offset adress? to what exactly? I still don't get
it.




--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
.



Relevant Pages

  • [PATCH] - Spell fixes - adress to address
    ... From adress to address. ... An address fits into a single register so it's safe to use 64-bit registers ... - * if we have 64-bit adresses. ... + * The interrupt routine must provide addresse of next physical pages ...
    (Linux-Kernel)
  • RE: Load Balancing MSMQT
    ... Use any name you want as long as you register it into the dns and it ... translates to the virtual IP adress. ...
    (microsoft.public.biztalk.general)
  • Re: Another Microsoft online survey on VB6
    ... residentials only. ... For taking part in the "lottery" then one has to enter ... name and postal adress. ... Maybe they also register clicks on this link together ...
    (microsoft.public.vb.general.discussion)
  • Read the byte at 0x03fd...
    ... It's the adress of the Line Status Register of the port COM1. ... lamalice. ...
    (microsoft.public.dotnet.languages.vc)