Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Live long and prosper. -- Spock, "Amok Time", stardate 3372.7


computers / comp.sys.apple2 / Embed binary code in Applesoft program lines

SubjectAuthor
* Embed binary code in Applesoft program linesmmphosis
+* Re: Embed binary code in Applesoft program linesI am Rob
|`* Re: Embed binary code in Applesoft program linesMike Spangler
| +- Re: Embed binary code in Applesoft program linesErik Struiksma
| `* Re: Embed binary code in Applesoft program linesErik Struiksma
|  `* Re: Embed binary code in Applesoft program linesSteve Nickolas
|   `* Re: Embed binary code in Applesoft program linesfadden
|    `- Re: Embed binary code in Applesoft program linesErik Struiksma
`- Re: Embed binary code in Applesoft program linesmmphosis

1
Embed binary code in Applesoft program lines

<mmphosis-1626308395@macgui.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3562&group=comp.sys.apple2#3562

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mmpho...@macgui.com (mmphosis)
Newsgroups: comp.sys.apple2
Subject: Embed binary code in Applesoft program lines
Date: Thu, 15 Jul 2021 00:19:57 -0000 (UTC)
Organization: Mac GUI
Lines: 29
Message-ID: <mmphosis-1626308395@macgui.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Jul 2021 00:19:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c4bfe9f638a8e4998d76b216701a63c3";
logging-data="17814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ubKyYQJCsyszY8Df0hcO/"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:7z5q2dF2jAgZVkHE0H8V7D/xkdw=
 by: mmphosis - Thu, 15 Jul 2021 00:19 UTC

For those that might be interested, here is an example of this method. My
program is "listable" and definitely "fragile." You can use different line
numbers, so long as you GOSUB to the single line with the : just before the
line with the CALL and the embedded binary.

10 HOME : GOSUB 62910: PRINT PEEK (78), PEEK (79):X = RND ( - 1 * ( PEEK
(78) + 256 * PEEK (79))): PRINT X

62900 END
62910 :
62920 CALL PEEK (121) + PEEK (122) * 256 + 37: RETURN : VTAB P CLEAR
TAB( NEW L HCOLOR= INT ONERR L IF LL IF LL IF LL VTAB @ CLEAR TAB( NEW
0 ASC ASC N = MID$ ASC O8 GOSUB VAL

https://www.applefritter.com/comment/93931#comment-93931

-----

From Slammer! "other methods" ...

* Embed binary code in program lines

Speedy, but difficult to manage and access, can make programs unlistable,
and also fragile if any lines are changed.

http://www.ivanx.com/appleii/slammer/othermethods.html

Re: Embed binary code in Applesoft program lines

<451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3563&group=comp.sys.apple2#3563

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:622a:1893:: with SMTP id v19mr2528851qtc.222.1626331234420;
Wed, 14 Jul 2021 23:40:34 -0700 (PDT)
X-Received: by 2002:a54:4586:: with SMTP id z6mr6700448oib.71.1626331234170;
Wed, 14 Jul 2021 23:40:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Wed, 14 Jul 2021 23:40:33 -0700 (PDT)
In-Reply-To: <mmphosis-1626308395@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=142.165.85.56; posting-account=U4TNXwoAAABP4nIJHynAJZ69O_f3LY2g
NNTP-Posting-Host: 142.165.85.56
References: <mmphosis-1626308395@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: gids...@sasktel.net (I am Rob)
Injection-Date: Thu, 15 Jul 2021 06:40:34 +0000
Content-Type: text/plain; charset="UTF-8"
 by: I am Rob - Thu, 15 Jul 2021 06:40 UTC

The idea of where to place a binary program so that it is protected and can not be tromped on by variables, strings and expanding programs is a subject that has been discussed many times, and is still difficult to give a good answer to.

I played with the idea of putting binary code between the end of the program and the start of variable space (also known as LOMEM:, which usually follows the end of the program in memory).

* EP = end of program address
* BS = binary program start address
* BL = binary program length
* binary program can be loaded or poked to the address at EP + 15
* The +15 is needed to skip past the two variables EP & BL, which are temporarily preserved after the end of the program until the new LOMEM: command is encountered, then the variables are reloaded to the new LOMEM: address.
* The binary program length is from Prodos, change to 43634 & 43635 for DOS

1 GOTO 63998 : REM Must be done before any variables are assigned
2 CALL BS : END

63998 GOSUB 63999: PRINT CHR$ (4)"BLOAD BIN.PGRM,A"EP + 15: LOMEM: EP + BL + 15: GOSUB 63999:BS = EP +15: GOTO 2

63999 EP = PEEK (105) + 256 * PEEK (106):BL = PEEK (48859) + 256 * PEEK (48860): RETURN

Re: Embed binary code in Applesoft program lines

<4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3566&group=comp.sys.apple2#3566

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:622a:1893:: with SMTP id v19mr5580549qtc.222.1626379509682;
Thu, 15 Jul 2021 13:05:09 -0700 (PDT)
X-Received: by 2002:a4a:a385:: with SMTP id s5mr4716539ool.7.1626379509433;
Thu, 15 Jul 2021 13:05:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 15 Jul 2021 13:05:09 -0700 (PDT)
In-Reply-To: <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=74.82.228.43; posting-account=KSi_FwkAAABcMkG_nDPUpF5jnOZBH95o
NNTP-Posting-Host: 74.82.228.43
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: mspang...@ifiber.tv (Mike Spangler)
Injection-Date: Thu, 15 Jul 2021 20:05:09 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mike Spangler - Thu, 15 Jul 2021 20:05 UTC

The documentation of the Wizard's Toolbox has a detailed description of what is going on with that method (putting binary code between the end of the program and the start of variable space) as did some issue of Open Apple back before it became A2-Central.

It sort of fell out of favor when Prodos came out as you could just ask Prodos for a buffer. But that trick still works under Prodos too.

Re: Embed binary code in Applesoft program lines

<c45dc05d-119e-40bd-8c9a-77866a725256n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3569&group=comp.sys.apple2#3569

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a37:71c1:: with SMTP id m184mr9208381qkc.367.1626431071429;
Fri, 16 Jul 2021 03:24:31 -0700 (PDT)
X-Received: by 2002:aca:41d7:: with SMTP id o206mr11613699oia.132.1626431071152;
Fri, 16 Jul 2021 03:24:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 16 Jul 2021 03:24:30 -0700 (PDT)
In-Reply-To: <4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=98.198.109.135; posting-account=Bc6OEAoAAABLNUoZTwDlV802aGfHpjjE
NNTP-Posting-Host: 98.198.109.135
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
<4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c45dc05d-119e-40bd-8c9a-77866a725256n@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: erik...@gmail.com (Erik Struiksma)
Injection-Date: Fri, 16 Jul 2021 10:24:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Erik Struiksma - Fri, 16 Jul 2021 10:24 UTC

On Thursday, July 15, 2021 at 3:05:10 PM UTC-5, mspa...@ifiber.tv wrote:
> The documentation of the Wizard's Toolbox has a detailed description of what is going on with that method (putting binary code between the end of the program and the start of variable space) as did some issue of Open Apple back before it became A2-Central.
>
> It sort of fell out of favor when Prodos came out as you could just ask Prodos for a buffer. But that trick still works under Prodos too.

I actually prefer to keep my ML saved in a separate file to BLOAD from. This way I can pull this for multiple BASIC programs without duplicating the ML each time. But... if I really wanted to have it all in 1 file without restricting my ML or binary data in any way, I would try doing something like this:

* ML to set BASIC program start pointer, fix any broken BRUN hooks, and JMP to somewhere to start BASIC program execution.
* Your ML routines & binary data
* Your BASIC program
* BSAVE everything (L$ something like: BASIC end - BASIC start + ML/data length)

This does restrict you from being able to RUN/LOAD/SAVE filename, but you'll at least be able to BRUN it, and you won't have to worry about BASIC messing up your ML when you edit, nor will it need to be relocatable. Once the BASIC program start pointer is set, you can RUN, LIST, and edit all you want. Of course you would have the inconvenience of having to BSAVE each time you want to save your work. You could have a BASIC line to do this for you. Just keep that line number out of reach of normal program execution, and you would RUN Ln# from the command prompt to save. Either that or go though the trouble of making an ampersand routine if you don't want to see or store a dedicated line for saving in your BASIC program.

Re: Embed binary code in Applesoft program lines

<a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3570&group=comp.sys.apple2#3570

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:5815:: with SMTP id g21mr8703974qtg.266.1626431157786;
Fri, 16 Jul 2021 03:25:57 -0700 (PDT)
X-Received: by 2002:aca:da86:: with SMTP id r128mr11768013oig.150.1626431157588;
Fri, 16 Jul 2021 03:25:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 16 Jul 2021 03:25:57 -0700 (PDT)
In-Reply-To: <4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=98.198.109.135; posting-account=Bc6OEAoAAABLNUoZTwDlV802aGfHpjjE
NNTP-Posting-Host: 98.198.109.135
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
<4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: erik...@gmail.com (Erik Struiksma)
Injection-Date: Fri, 16 Jul 2021 10:25:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Erik Struiksma - Fri, 16 Jul 2021 10:25 UTC

I actually prefer to keep my ML saved in a separate file to BLOAD from. This way I can pull this for multiple BASIC programs without duplicating the ML each time. But... if I really wanted to have it all in 1 file without restricting my ML or binary data in any way, I would try doing something like this:

* ML to set BASIC program start pointer, fix any broken BRUN hooks, and JMP to somewhere to start BASIC program execution.
* Your ML routines & binary data
* Your BASIC program
* BSAVE everything (L$ something like: BASIC end - BASIC start + ML/data length)

This does restrict you from being able to RUN/LOAD/SAVE filename, but you'll at least be able to BRUN it, and you won't have to worry about BASIC messing up your ML when you edit, nor will it need to be relocatable. Once the BASIC program start pointer is set, you can RUN, LIST, and edit all you want. Of course you would have the inconvenience of having to BSAVE each time you want to save your work. You could have a BASIC line to do this for you. Just keep that line number out of reach of normal program execution, and you would RUN Ln# from the command prompt to save. Either that or go though the trouble of making an ampersand routine if you don't want to see or store a dedicated line for saving in your BASIC program.

Re: Embed binary code in Applesoft program lines

<alpine.DEB.2.21.2107160908180.9612@sd-119843.dedibox.fr>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3571&group=comp.sys.apple2#3571

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: usots...@buric.co (Steve Nickolas)
Newsgroups: comp.sys.apple2
Subject: Re: Embed binary code in Applesoft program lines
Date: Fri, 16 Jul 2021 09:09:48 -0400
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <alpine.DEB.2.21.2107160908180.9612@sd-119843.dedibox.fr>
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com> <4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com> <a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: reader02.eternal-september.org; posting-host="b7684cf378fd8d99f84a7ed740e959be";
logging-data="31836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18U5QVJVOwc60qbM6HFcBJyqShr6Ih74Lo="
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
Cancel-Lock: sha1:GtxrHEzqYDcluhmmOue//2tKCVc=
In-Reply-To: <a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com>
X-X-Sender: mary@sd-119843.dedibox.fr
 by: Steve Nickolas - Fri, 16 Jul 2021 13:09 UTC

I'd offer another option: move up LOMEM and end-of-program, and shove the
machine code in the hole. Lets you LOAD the data with the code, while
avoiding having to shove it *into* the code.

I think this is what HOPALONG CASSIDY did.

-uso.

Re: Embed binary code in Applesoft program lines

<e1c3dc29-6dea-4e48-9cab-3a4aa062ff71n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3572&group=comp.sys.apple2#3572

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:7f01:: with SMTP id f1mr9673002qtk.362.1626447308454;
Fri, 16 Jul 2021 07:55:08 -0700 (PDT)
X-Received: by 2002:a05:6808:3d1:: with SMTP id o17mr12179157oie.27.1626447308177;
Fri, 16 Jul 2021 07:55:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 16 Jul 2021 07:55:07 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.21.2107160908180.9612@sd-119843.dedibox.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com>
<4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com> <a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com>
<alpine.DEB.2.21.2107160908180.9612@sd-119843.dedibox.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e1c3dc29-6dea-4e48-9cab-3a4aa062ff71n@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: thefad...@gmail.com (fadden)
Injection-Date: Fri, 16 Jul 2021 14:55:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fadden - Fri, 16 Jul 2021 14:55 UTC

Take a look at RENUMBER from the DOS 3.3 System Master disk.

[...]
1200 HOME : PRINT TAB( 4)"RENUMBER IS INSTALLED AND READY"
1210 VTAB 8: PRINT "IF YOU USE 'FP', 'HIMEM', OR 'MAXFILES'"
1220 PRINT : PRINT " YOU WILL HAVE TO RE-RUN RENUMBER"
10000 REM DO NOT CHANGE 10010
10010 CALL PEEK (121) + PEEK (122) * 256 + 31

It's looking at $79-7a (OLDTEXT), which holds a pointer to the end of the previous line. The machine-language code follows the last line, so really the comment should be, "do not change 10010, or add anything after this line". So long as you follow that rule, you can add or remove lines, and everything just gets moved around.

The code it calls relocates itself below DOS and sets up the ampersand vector.

One reason to use this sort of approach is for programs on cassette tape. Binary programs must be loaded with an explicit start and length, but BASIC programs can just use LOAD/SAVE.

(For Integer BASIC, see https://retrocomputing.stackexchange.com/q/494/56 .)

Re: Embed binary code in Applesoft program lines

<3967597c-95c4-41f8-9c98-306936f77f01n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3574&group=comp.sys.apple2#3574

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:1137:: with SMTP id p23mr13288003qkk.490.1626487549709; Fri, 16 Jul 2021 19:05:49 -0700 (PDT)
X-Received: by 2002:a4a:df02:: with SMTP id i2mr2580954oou.14.1626487549442; Fri, 16 Jul 2021 19:05:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 16 Jul 2021 19:05:49 -0700 (PDT)
In-Reply-To: <e1c3dc29-6dea-4e48-9cab-3a4aa062ff71n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=98.198.109.135; posting-account=Bc6OEAoAAABLNUoZTwDlV802aGfHpjjE
NNTP-Posting-Host: 98.198.109.135
References: <mmphosis-1626308395@macgui.com> <451fbd19-b67a-4ed2-872c-0832a4ec3e50n@googlegroups.com> <4cb552cb-b774-49c6-9b44-01dde71ca571n@googlegroups.com> <a057df6b-989a-4e41-ab38-ebb0e288a4aan@googlegroups.com> <alpine.DEB.2.21.2107160908180.9612@sd-119843.dedibox.fr> <e1c3dc29-6dea-4e48-9cab-3a4aa062ff71n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3967597c-95c4-41f8-9c98-306936f77f01n@googlegroups.com>
Subject: Re: Embed binary code in Applesoft program lines
From: erik...@gmail.com (Erik Struiksma)
Injection-Date: Sat, 17 Jul 2021 02:05:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
 by: Erik Struiksma - Sat, 17 Jul 2021 02:05 UTC

I guess the complexity of how you handle this depends on what the needs of your code is. You would have to weigh the pros and cons of each method and decide for yourself what's best for each case.

If your code is completely relocatable and doesn't need direct access to parts of itself (or data), then sure, sticking it between your program end and LOMEM would make sense. But if your code does need direct access to itself or it's data, then you can't have that just floating up and down in memory... at least, not without some overhead code. So if were sticking to wanting to use SAVE/LOAD/RUN filename, here's a couple more ideas I could think of.

You could have some additional code that's relocatable for initialization that would recalculate and rewrite each place with any kind of absolute addressing reference by using indirect ZP addressing.

Here's my other idea. For program execution, you would have your ML code and data located above HIMEM. Before you SAVE, you would need to temporally adjust LOMEM and copy of your code/data down to the end of your BASIC program. Once you SAVE, then you can restore LOMEM back. After you LOAD your program, you would need to copy the code/data at the end of your program back up and adjust LOMEM and HIMEM accordingly.

Re: Embed binary code in Applesoft program lines

<mmphosis-1627506576@macgui.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3582&group=comp.sys.apple2#3582

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mmpho...@macgui.com (mmphosis)
Newsgroups: comp.sys.apple2
Subject: Re: Embed binary code in Applesoft program lines
Date: Wed, 28 Jul 2021 21:09:37 -0000 (UTC)
Organization: Mac GUI
Lines: 13
Message-ID: <mmphosis-1627506576@macgui.com>
References: <mmphosis-1626308395@macgui.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Jul 2021 21:09:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e296f38d7f6fe0e8337e58c3f5e4ddad";
logging-data="31487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jgjHLj7n+rXPM8ejGTg8/"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:GDgNLKQ0iMy2ayRlKAtDHPq62NI=
In-Reply-To: <mmphosis-1626308395@macgui.com>
 by: mmphosis - Wed, 28 Jul 2021 21:09 UTC

Here is another one with a slightly different approach.

0 GOTO 1: ONERR AI READ LY RND
1 LET X = 256 * PEEK (104)
2 LET X = X + PEEK (103) + 7
3 LET E = 61588:M = - 1
4 FOR I = E + 9 TO E STEP M
5 POKE 65, PEEK (I): CALL X
6 NEXT

https://rosettacode.org/mw/index.php?title=Show_ASCII_table&oldid=339063#Applesoft_BASIC


computers / comp.sys.apple2 / Embed binary code in Applesoft program lines

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor