ken@birtch.UUCP (Ken B) (03/27/86)
here is a way to fool dos into doing "whatever you want" if someone lists YOUR APPLESOFT basic program. (note: this only applies to Applesoft) Note: I havn't worked on an apple for about 3 years, so, please be patient, 'cause you'll have to do some looking for some stuff yourself. make the first line of your program (line 0, 1, whatever) be in the form of (type in EXACTLY!!): 0REM**FP now, exit to the monitor (call -151), and examine location $0800 thru $080A (hex addresses) with a command something like: * 800L (note: this disassembles, but it will work) some code will be displayed. at a location near $0806, you will see the hex representation of two astriks'. what you want to do is to poke into those two consecutive address, a c/r and a ctrl-d (hex 8D, 84 I think--look it up in one of the apple manuals--I don't have any with me) the format would be (if the two astriks' are at locations $0806 and $0807 is: * 806:8D 84 at this point, exit back to basic ( 3D0G ) DO NOT LIST YOUR PROGRAM YET!!!! if you do, your program will be wiped out! save your program onto disk first. now, list it. oh noooo! its gone! What happened? applesoft started to list your program. it dumped the remark statement, which was a c/r, followed by a ctrl-d FP (the FP is a dos command) DOS intercepted the FP, because the first character in the 'new line' was a control-d. This method will work to initialize a disk (rather nasty, don't you think?), run another program, or whatever dos command you want to do. (now, if you placed this line in fairly randome places around your program, the snooper would have to find them all, before he/she could fully list your code. I found it easier to imbed control-l's in a rem statement, that way if they list your code onto a printer, they formfeed lots and lots of paper! rather nasty, also!) ======== This might not be exceptionally clear, so if you have any questions, e-mail them to me and I'll try to clear them up. Ken Brown -- uucp: ...{!glacier!oliveb,!ihnp4!trwrb} !felix!birtch!ken These ramblings are my own, and are surely not those of my employer.