What exactly do Plot and Unplot do?

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
User avatar
Paul
Posts: 1517
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: What exactly do Plot and Unplot do?

Post by Paul »

Yes, I've read this too.
There ist also a rebuilt version of that ROM around with printing dropped and read, data, restore reimplemented by backporting these from the Spectrum.
In theory, there is no difference between theory and practice. But, in practice, there is.
Moggy
Posts: 3266
Joined: Wed Jun 18, 2008 2:00 pm

Re: What exactly do Plot and Unplot do?

Post by Moggy »

The ZX81 ROM was supposed to have...

DATA

DRAW

PRINT TO

READ

RESTORE

UNDRAW

But as mentioned these items were given up for the print routines.
Freya
Posts: 16
Joined: Tue Feb 14, 2023 7:45 pm

Re: What exactly do Plot and Unplot do?

Post by Freya »

Moggy wrote: Mon Feb 20, 2023 3:12 pm The ZX81 ROM was supposed to have...

DATA

DRAW

PRINT TO

...
PRINT TO sounds really interesting!
Do you know what that command was supposed to do?
Fruitcake
Posts: 351
Joined: Wed Sep 01, 2010 10:53 pm

Re: What exactly do Plot and Unplot do?

Post by Fruitcake »

You can find details here.
bola_dor
Posts: 398
Joined: Wed Oct 02, 2019 5:32 am

Re: What exactly do Plot and Unplot do?

Post by bola_dor »

Freya wrote: Sun Feb 19, 2023 11:36 pm
dr beep wrote: Sun Feb 19, 2023 7:44 pm A character can also be 4 pixels. a bit like character 129 to 143 on the ZX Spectrum.

PLOT will set the large pixels in a character on the screen.
Since the screen is character based you can't plot a pixel at the position of a character unless the character is the graphical character 0 to 7 or 128 to 135.

UNPLOT will erase the plotted pixel.
But how is this different to using Print AT when you have a char based display file?
I'm wondering what was the point of the plot keyword at all on the zx81.
Couldn't you do exactly the same thing with Print AT?

Freya
when printinting the coordinates increases from top to bottom , left to right. whith plot they increases from the bottom.
you can use prtint at but for any calculated pixel (if you whant to draw a line or cirrcle) you will need to preserve somehow the other three "pixels" involved in that character...


(edited by moderator 1024MAK)
Last edited by 1024MAK on Mon May 15, 2023 8:43 am, edited 1 time in total.
Reason: Tidy up quote
Ernesto
ZX80 USA, ZX81UK, ZX Spectrum, ZX Spectrum+, ZX Spectrum 128+ UK, ZX Spectrum +2/A, Sinclair QL, CZ1000, CZ1500, CZ2000, CZ1000Plus, CZ1500Plus, CZ Spectrum, CZ Spectrum Plus, TK83, TK85, TK90X, TK95. TS2068. And more to come :D
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: What exactly do Plot and Unplot do?

Post by dr beep »

bola_dor wrote: Mon May 15, 2023 2:15 am
But how is this different to using Print AT when you have a char based display file?
I'm wondering what was the point of the plot keyword at all on the zx81.
Couldn't you do exactly the same thing with Print AT?

when printinting the coordinates increases from top to bottom , left to right. whith plot they increases from the bottom.
you can use prtint at but for any calculated pixel (if you whant to draw a line or cirrcle) you will need to preserve somehow the other three "pixels" involved in that character...
With PLOT you don't need to calculate the character to be set.
Is there already a plotted point or not?
Ie
pos1 is set and you add pos2. character adds 2
pos1 is set and you add pos4, character adds 134
Post Reply