Re: A86: Hiding Programs


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

Re: A86: Hiding Programs




>If the first character of a program is less than 'A',
>then it is not detected by any shells or the os.  To
>hide a program like this, use this routine (it isn't
>tested):

Eh...Not exactly.
MSE, ASE, YAS, and most others will detect this program ($00,"rog").
As I am the author of MSE/ZAP-OS, i can tell you that neither will detect
programs that start with [sqrt],'!','#',or 'mse'.

> ld hl,progname-1
> rst 20h
> rst 10h

ld	a,b
ex	de,hl

> ld de,6
> add hl,de    ;point hl to first character in VAT
> ld (hl),0
>
>progname:
> .db 4,"prog"     ;length followed by name
>
>This routine changes the program's name to:
> .db 0,"rog"
>
Actually, its .db $04,$00,"rog"


Chicane
chicane@reninet.com
http://zapo.calc.org



Follow-Ups: References: