Re: A83: Writing to Y1.


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

Re: A83: Writing to Y1.




On 04-Oct-98, James Matthews wrote:

>> You could look it up, _delmem what's in it, _insertmem as much as you need,
>> copy the stuff there, mark all used variables as graph-referred and update
>the
>> size-word in the beginning of the variable.

>Right...perhaps a further explanation? =)...

>Thanks,

>James.

Set OP1 to the name of equation Y1 (explained in tokens.inc), call
_chkfindsym, get  the size of the variablle (word pointed to by de), put the
size in hl and the address of the data after the size word (was: de+2), call
_delmem. Then use the same de, set hl to the size of your equation, call
_insertmem. Then ldir your equation into the newly allocated memory. Write the
size of your equation into the first two bytes of the data (2 bytes before
what you ldir:ed). If your equation uses other variables than x, look up the
symtab entry for each one of them and set the graphref bit.

Linus


References: