Re: A86: VAT


[Prev][Next][Index][Thread]

Re: A86: VAT




At 03:15 AM 4/9/98 -0500, you wrote:
>
>1. when you use find sym does ahl point to the start of the variable
>
No, bde does. hl is a pointer to the VAT entry. a is the var type.

>2. does it point to the actual data or does it start at the name
>
hl points to the type byte in the VAT entry. bde points to the start of the
var data (usually a word that gives the size, call $4c3f to move to the
actual start of var data, i think).

>3. is everything in the VAT backwards, like all the code in a program?
>
everything in the VAT is backwards. The absolute addresses are also in a
different format than is used other places. Normally to load an abs addr
into, say, bde, you can go:

ld b,(hl)
inc hl
ld de,(hl)	;not sure that's legal...

but to load it from the VAT, you have to do:

ld b,(hl)
inc hl
ld d,(hl)
inc hl
ld e,(hl)

--Joshua


References: