"Inline" BASIC Extensions

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
User avatar
GCHarder
Posts: 437
Joined: Sat Dec 14, 2013 7:46 pm

"Inline" BASIC Extensions

Post by GCHarder »

Various BASIC extensions, like scroll down, converted to "Inline" formats.

See the enclosed Readme for more info.

Enjoy;

Greg

Updated the program, 08/30/23. Modified the Quick Print routine slightly.
Attachments
Inline-ZX.zip
Programs and demos
(70.89 KiB) Downloaded 208 times
"Matrix Rain" screenshot
"Matrix Rain" screenshot
MtrxRain.gif (2.33 KiB) Viewed 7699 times
Last edited by GCHarder on Wed Aug 30, 2023 11:04 pm, edited 4 times in total.
User avatar
Paul
Posts: 1545
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: "Inline" BASIC Extensions

Post by Paul »

This is an interresting piece of Software.
I had a quick run in EO and it's impressive.

I need to figure out how to use only one or two routines.
Maybe something for tomorrow.
In theory, there is no difference between theory and practice. But, in practice, there is.
Moggy
Posts: 3328
Joined: Wed Jun 18, 2008 2:00 pm

Re: "Inline" BASIC Extensions

Post by Moggy »

Excellent Greg as always. :D

I have some of these routines but as separate units scattered amongst other programs so to speak and to see them presented in this form is a nice touch and like Paul I will have some fun with this, many thanks.
User avatar
GCHarder
Posts: 437
Joined: Sat Dec 14, 2013 7:46 pm

Re: "Inline" BASIC Extensions

Post by GCHarder »

If you can think of any other, not too complicated, routines let me know. I'm thinking a one line text scroll might be useful, for instructions etc.

Regards;

Greg
User avatar
GCHarder
Posts: 437
Joined: Sat Dec 14, 2013 7:46 pm

"Inline" Text scrolling routine

Post by GCHarder »

I'll add a smaller demo to the main program later on.

Regards;

Greg
Attachments
Scrolling Text.zip
(4.81 KiB) Downloaded 254 times
Screen.gif
Screen.gif (1.08 KiB) Viewed 7856 times
Moggy
Posts: 3328
Joined: Wed Jun 18, 2008 2:00 pm

Re: "Inline" BASIC Extensions

Post by Moggy »

Nice! :D
User avatar
XavSnap
Posts: 1976
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: "Inline" BASIC Extensions

Post by XavSnap »

Thanks Greg.
Nice code!
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
siggi
Posts: 1000
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: "Inline" BASIC Extensions

Post by siggi »

Hi Greg
nice demos :)

Maybe the subroutine's interface to the machine code can be done more easily using LPRINT ;
if printable characters need to be passed to m/c.

Instead of poking the characters into the machine code:

Code: Select all

21 POKE L+1, CODE C$(1)
22 POKE L+3, CODE C$(2)
using
21 LPRINT C$(1 to 2);
is easier.

Then the machine code can fetch PRINTABLE(!) characters from printer buffer (address 16444....) and the length of the basic code does not need to be calculated to call the machine code (line 20).

A single number X can be passed to m/c using RAND X and fetch the number X from address 16434 by m/c.

Regards
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
Paul
Posts: 1545
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: "Inline" BASIC Extensions

Post by Paul »

Could be a waste of Printer paper :?:
In theory, there is no difference between theory and practice. But, in practice, there is.
User avatar
siggi
Posts: 1000
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: "Inline" BASIC Extensions

Post by siggi »

if LPRINT is terminated by ';' NOTHING is printed
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
Post Reply