Re: Question regarding ASM Listing (Z8k)
- From: Oliver Lehmann <lehmann@xxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 19:46:10 +0200
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/
.
- References:
- Question regarding ASM Listing (Z8k)
- From: Oliver Lehmann
- Re: Question regarding ASM Listing (Z8k)
- From: Herbert Kleebauer
- Question regarding ASM Listing (Z8k)
- Prev by Date: Re: Question regarding ASM Listing (Z8k)
- Next by Date: Re: Why is my nasm program killing itself?
- Previous by thread: Re: Question regarding ASM Listing (Z8k)
- Index(es):
Relevant Pages
|