You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with printing on the various screen modes, and noticed that if you print to the right edge with a ; expecting the next text to appear at the beginning of the next line, that only works once. After the 2nd line, the 3rd and 4th don't appear anywhere.
If you're writing a screenful of text, you get lines 1 and 2, a blank line, then lines 5 and 6, a blank line, etc, etc.
I know that the Commodore screen editor maintains a line link table so that it knows which physical screen lines are tied together into one logical line. The VIC was the only machine I know of that allowed up to 4 lines, so I suspect some kind of issue related to that. BUT that doesn't exactly make sense either, because this same looping logic works fine in 80 and 40 columns. If it was the line link table, I would expect skips there as well...
Here's the text of my silly little toy program (starting from ancient rusty C64 habits):
5 w=80:h=60
6 f$=" "
7 e$=f$+f$
10 for s=0 to 6
20 screen s
30 print w" x"h
40 for l=2 to h-1
41 l$ = "this is line" + str$(l)
42 printleft$(e$,w-len(l$))l$;
44 next
46 l$ = "centering line" + str$(l)
48 printleft$(e$,(w-len(l$))/2)l$;
50 get k$: if k$="" then 50
60 h=h/2
70 if h<w/4 then w=w/2:h=60
80 if h>w2 then h=h/2
90 if h>w2 then h=h/2
100 next
110 screen $80
115 m=320:n=240:s=40:sx=m/s:sy=n/s
120 for i=0 to s-1
130 line isx, 0, 0,n-1-isy,rnd(1)16
140 line isx,n-1, 0, isy,rnd(1)16
150 line m-1-isx, 0,m-1,n-1-isy,rnd(1)16
160 line m-1-isx,n-1,m-1, i*sy,rnd(1)*16
165 if i>=1 and i<=30 then locate i,i:print "everything";
170 next
190 get k$: if k$="" then 190
200 screen 0
210 list
(I tried that inside a code tag, and it discarded all of the line breaks...)
The text was updated successfully, but these errors were encountered:
At least, in x16emu r41...
I was playing around with printing on the various screen modes, and noticed that if you print to the right edge with a ; expecting the next text to appear at the beginning of the next line, that only works once. After the 2nd line, the 3rd and 4th don't appear anywhere.
If you're writing a screenful of text, you get lines 1 and 2, a blank line, then lines 5 and 6, a blank line, etc, etc.
I know that the Commodore screen editor maintains a line link table so that it knows which physical screen lines are tied together into one logical line. The VIC was the only machine I know of that allowed up to 4 lines, so I suspect some kind of issue related to that. BUT that doesn't exactly make sense either, because this same looping logic works fine in 80 and 40 columns. If it was the line link table, I would expect skips there as well...
Here's the text of my silly little toy program (starting from ancient rusty C64 habits):
5 w=80:h=60
6 f$=" "
7 e$=f$+f$
10 for s=0 to 6
20 screen s
30 print w" x"h
40 for l=2 to h-1
41 l$ = "this is line" + str$(l)
42 printleft$(e$,w-len(l$))l$;
44 next
46 l$ = "centering line" + str$(l)
48 printleft$(e$,(w-len(l$))/2)l$;
50 get k$: if k$="" then 50
60 h=h/2
70 if h<w/4 then w=w/2:h=60
80 if h>w2 then h=h/2
90 if h>w2 then h=h/2
100 next
110 screen $80
115 m=320:n=240:s=40:sx=m/s:sy=n/s
120 for i=0 to s-1
130 line isx, 0, 0,n-1-isy,rnd(1)16
140 line isx,n-1, 0, isy,rnd(1)16
150 line m-1-isx, 0,m-1,n-1-isy,rnd(1)16
160 line m-1-isx,n-1,m-1, i*sy,rnd(1)*16
165 if i>=1 and i<=30 then locate i,i:print "everything";
170 next
190 get k$: if k$="" then 190
200 screen 0
210 list
(I tried that inside a code tag, and it discarded all of the line breaks...)
The text was updated successfully, but these errors were encountered: