How paint in the down two lines ?
The down two lines on the spectrum screen cant be used. But i remeber from the 80's that exist some code that allow us to paint on these two lines with plot or draw or others.
Someone remember the code ?
thx in advance
Someone remember the code ?
thx in advance
Post edited by arfgh on
Comments
www.zxbasic.net
The default for plot and draw inside this is full screen, with 0,0 being at the real bottom left.
And as a bonus, the whole program ends up being fast machine code!
This can be done in MC only by copying the drawroutine and handle the PLOT differently.
I did use this trick to use the draw-routine as movement in PITPAT.
No, the BASIC turns the Y-coordinates (AT Y,X starts at top, PLOT Y<X at bottom) with 176-y so 192 lines is only possible through MC. DRAW uses same PLOT routine so it will give an error when used there.
Some suggest or little help ?
I compiled this:
With line numbers and everything! You don't have to use line numbers, but I made this as close to standard sinclair basic as possible. This program doesn't work in normal basic, because it draws in areas that Sinclair basic doesn't allow. Here's a .tzx file to show what it ends up like when you compile it:
http://sites.google.com/site/britlion/ZXBASIC.NETScreenHandlingDemo.tzx
It does end up as Machine Code - but that basic source code is what I made it from.
ok, and where i can find these compiler tools for the pc ?
The compiler tool is here: -> http://www.zxbasic.net/
thx