Re: A86: absolute addressing pains me greatly


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

Re: A86: absolute addressing pains me greatly




could it be possible that you're trying to use the pointer to the vat
entry instead of the variable data?  bde->variable data  a=var type 
hl->vat entry

hmm...
 rst $10	; findsym
 jr c,it_dont_exist
 ld hl,NN	; remember to adjust for the asm marker & size word
 xor a
 add hl,de	; add offset
 adc a,b
 call _SET_ABS_SRC_ADDR
 xor a
 ld hl,3
 call _SET_MM_NUM_BYTES
 ld hl,destination
 call _SET_ABS_DEST_ADDR
 call _mm_ldir

-josh

On Thu, 11 Nov 1999 20:01:49 -0800 Cassady Roop <croop@oregontrail.net>
writes:
>
>Is there some special thing in _findsym that makes it return junk 
>values
>when a query is made about the (sqrt)KEY variable?  It returns 
>absolute
>pointers, supposedly to the program data in the variable, that VTI 
>says
>are not only about a thousand off, but on the wrong page too!
>
>Would someone please explain how I would go about getting three
>consecutive bytes from offset 'NN' in a program variable, and storing
>them to a location in the _asm_exec_ram space?  Maybe I'm just doing
>something way wrong.
>
>Cassady Roop
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.


Follow-Ups: