List Remedy

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

List Remedy

Post by GCHarder »

Here's a type-in I did from Your Computer 8305. It's a nice Basic Listing program. It comes in very handy when comparing a printed listing from a magazine to what you've typed in, to see if they match. The only problem is line numbers for 0 to 999 aren't padded with spaces, so there's not an exact match until line number 1000 and up is reached. Maybe someone can fix that, I've looked into it but don't see any easy solution.

Regards;

Greg
Attachments
List Remedy (yc8305).zip
(2.26 KiB) Downloaded 1327 times
poglad
Posts: 133
Joined: Mon Mar 24, 2014 3:11 pm
Location: Aberdeen, Scotland

Re: List Remedy

Post by poglad »

This is a very nifty little routine, actually! I'm impressed.

As for your leading-space problem, it's actually very easily solved:

POKE 16528,229
POKE 16529,205
POKE 16530,165
POKE 16531,10
POKE 16532,225
POKE 16533,35

Entering these before using it for the first time, you'll now find the line numbers indented perfectly with leading spaces. 8-)
User avatar
GCHarder
Posts: 427
Joined: Sat Dec 14, 2013 7:46 pm

Re: List Remedy

Post by GCHarder »

Thanks for the fix poglad. I knew there had to be something in the ROM to do that!

I'm uploading a copy of the fixed version, I've also added a "Relocator" with it, which should've been included in the original listing.

Regards;

Greg
Attachments
List Remedy v2.zip
List Remedy prog and mag scan
(169.12 KiB) Downloaded 209 times
stroebeljc
Posts: 63
Joined: Thu Apr 23, 2020 6:02 am

Re: List Remedy

Post by stroebeljc »

I know this thread is a decade old, but I found it interesting and also found issues with the tool. I've attached an update that allows the display of lines greater than 255 bytes, isn't fooled by 7Eh's in REM statements, and works in either fast or slow mode.
I've also included the source.
Attachments
List Remedy v3.zip
(4.92 KiB) Downloaded 14 times
John
stroebeljc
Posts: 63
Joined: Thu Apr 23, 2020 6:02 am

Re: List Remedy

Post by stroebeljc »

A few final tweaks before moving on to something else. ;)
The project is also available on GitHub.
Attachments
List Remedy v4.zip
(5.01 KiB) Downloaded 8 times
John
Post Reply