home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.acorn
- Path: sparky!uunet!pipex!pavo.csi.cam.ac.uk!cl.cam.ac.uk!crj10
- From: crj10@phx.cam.ac.uk (Clive Jones)
- Subject: Re: Help!
- Message-ID: <1993Jan26.142450.9008@infodev.cam.ac.uk>
- Telephone-Messages: +44 223 33 4900
- Sender: news@infodev.cam.ac.uk (USENET news)
- Address: Christ's College, Cambridge CB2 3BU, ENGLAND.
- Nntp-Posting-Host: fenton.cl.cam.ac.uk
- Organization: U of Cambridge, England
- References: <93025.092128EY04@LIVERPOOL.AC.UK> <1993Jan25.113557.8389@infodev.cam.ac.uk>
- Date: Tue, 26 Jan 1993 14:24:50 GMT
- Lines: 32
-
- In article <1993Jan25.113557.8389@infodev.cam.ac.uk> MJW19@phx.cam.ac.uk writes:
- >In article <93025.092128EY04@LIVERPOOL.AC.UK> EY04@LIVERPOOL.AC.UK writes:
- >>I have a BASIC program that I have written for the BBC. Apart from compiling
- >>the source code is there any way to prevent the source code from being seen
- >>when it is being run on the computer?
- >
- >I have a small piece of code that converts BASIC programs into executables in a
- >rather obvious way. A drawback is that you cannot pass parameters to the BASIC
- >program. Once an executable it can be squeeze-d, rendering it unreadable. I'll
- >try and dig it out and make it work again, and then maybe post it to Newcastle.
-
- Er... for the BBC, though?
-
- The following mechanism will work on any machine, although some
- cunning is required to drive it from the desktop under RiscOS:
-
- LOAD the basic program.
- PRINT ~PAGE,~TOP
- !(TOP-2)=0
- *SAVE <new-filename> <value-of-PAGE-above> <value-of-TOP-above>
-
- This will save a version of the program with the end marker corrupted.
- You can then LOAD and RUN the program, but not CHAIN it. Any attempt
- to list it, (or any attempt to READ beyond the last DATA statement or
- call a missing function/procedure or goto a missing line number) will
- give Bad Program. Thus, the program can't be listed, put through
- ArmBE, etc.
-
- THe slight snag is that you need to *EXEC a script to run it, as I
- said.
-
- --Clive.
-