Re: A86: Hiding Programs


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

Re: A86: Hiding Programs




load the name of the program to (hl), then call this:

prgm_toggle:
        rst 20h         ;copy name to op1
        rst 10h         ;find it
        ld a,(hl)       ;get type byte
        cp $0c          ;is it a string?
        jr z,change     ;yes, change it
        cp $12          ;is it a program?
        jr z,change     ;yes, change it
        ret             ;no, return

change: xor $1e         ; = $0c xor $12
        ld (hl),a       ;toggle between string and prgm
        ret

or you could hardwire it to only change one way, that could make it
faster.

-josh

On Fri, 23 Apr 1999 23:16:41 EDT Nicolas P Zagorin <ziggy2282@juno.com>
writes:
> possibly, but can I change my program form a prog to a string and 
>back in
>asm...that sounds pretty tough...
>
>~Nick  
>___________________________________________________________________ 
>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/getjuno.html 
>or call Juno at (800) 654-JUNO [654-5866]

___________________________________________________________________
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/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]


Follow-Ups: