42 Column Routine (BASIC extension)

People are still making stuff for the Sinclair related machines. Tell us about new games and other software that runs on the Spectrum, ZX80/ZX81, Pentagon and Next.
Post Reply
User avatar
uglifruit
Manic Miner
Posts: 707
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

42 Column Routine (BASIC extension)

Post by uglifruit »

Do I put this here?

My 42 column BASIC print extension, using stream 7.

Source code, demo, instructions, etc. all found here

Image
Image


I started this years ago, and did a few tweaks more recently.

I'm now calling it *done*.

PROCESSED
ID also created for the accompanying demo. DH 18/04/23
CLEAR 23855
User avatar
R-Tape
Site Admin
Posts: 6600
Joined: Thu Nov 09, 2017 11:46 am

Re: 42 Column Routine (BASIC extension)

Post by R-Tape »

uglifruit wrote: Tue Apr 18, 2023 11:25 am My 42 column BASIC print extension, using stream 7.
Cheers. That just links to a pic though.
User avatar
uglifruit
Manic Miner
Posts: 707
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

Re: 42 Column Routine (BASIC extension)

Post by uglifruit »

R-Tape wrote: Tue Apr 18, 2023 12:50 pm Cheers. That just links to a pic though.
Yep. What an idiot I am.

Try this https://1drv.ms/f/s!AmvYCHV8PMQkn2U3QELhEAsmWGhC?e=93r09F

They are beautiful screenshots though. I don't know what you're complaining about.
CLEAR 23855
User avatar
R-Tape
Site Admin
Posts: 6600
Joined: Thu Nov 09, 2017 11:46 am

Re: 42 Column Routine (BASIC extension)

Post by R-Tape »

Neat, and that's a cool demo - more arty than a lot of standalone demos (so I'm giving it a separate ID).

I found doing a proportional font in assembly difficult enough, doing it in BASIC sounds painful to me.
User avatar
uglifruit
Manic Miner
Posts: 707
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

Re: 42 Column Routine (BASIC extension)

Post by uglifruit »

Here's a quick variant on this, as I had a polite email requesting it.

tap file

It uses LPRINT (technically stream #3) in place of PRINT #7; to access the routine.

So, as long as you've not got a printer attached, this might be the better version to use. Your BASIC will look something like this:

Code: Select all

5 REM Having saved the font and routines with SAVE "data" CODE 64000,1536
10 CLEAR 63999
20 LOAD "data" CODE
30 RANDOMIZE USR 64900:REM initialise the routine
40 LPRINT PAPER 0:REM SET UP NO ATTRIBUTE MASK
50 FOR A=0 to 23
60 LPRINT AT A,A;INK A;"TEST"
70 NEXT A
80 PAUSE 0
All the additional entry points, pokes and handy routines are identical to the other version.

Image

Image

PROCESSED
Added to ID 39463. DH 04/06/23
CLEAR 23855
Post Reply