Re: A86: rename


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

Re: A86: rename




Can't you just change the name in the VAT to rename, as long as the length
is the same?

At 08:39 PM 6/3/98 -0700, you wrote:
>
>i'm writing a program that'll let you do interesting (well, not THAT
>interesting) things with the vat.  one of them is rename things.  right
>now i create a new variable (0-byte string) with the new name and swap
>the location and type.  the only problem is that i can't delete or even
>use the old one!  erg, i'm never good at explaining things:
>
>help!
>
>        ld hl,0 ;1 byte didn't work either.
>        call _CREATESTRNG
>
>        ;bde=abs addr
>        ;swap addresses and type
>        ld ix,(current) ;fix new ptr
>        ld a,(ix+$02)
>        ld (hl),a
>        dec hl
>        ld a,(ix+$0f)
>        ld (hl),a
>        dec hl
>        ld a,(ix+$0e)
>        ld (hl),a
>        dec hl
>        ld a,(ix+$0d)
>        ld (hl),a
>
>        ld l,(ix+$00)   ;fix old ptr
>        ld h,(ix+$01)
>        ld a,$0c
>        ld (hl),a
>        dec hl
>        ld (hl),d
>        dec hl
>        ld (hl),e
>        dec hl
>        ld (hl),b
>
>        ;delete old one
>;        ld hl,(current)
>;        inc hl
>;        inc hl
>;        rst 20h ;mov10toop1
>;        rst 10h ;findsym
>;        call _delvar
>
>running delvar would cause it to copy everything down 2 bytes! (wierd)
>
>oh, (ix) =
>;$00-$01 ptr to vat entry
>;$02     type
>;$03     length of name
>;$04-$0C name
>;$0D-$0F absolute address
>
>thankyouthankyouthankyou
>
>-josh
>
>
>_____________________________________________________________________
>You don't need to buy Internet access to use free Internet e-mail.
>Get completely free e-mail from Juno at http://www.juno.com
>Or call Juno at (800) 654-JUNO [654-5866]
>
>


// David Phillips
// mailto:electrum@tfs.net
// AIM: electrum32


Follow-Ups: References: