20x30, 40x15, 20x15 text mode

If you have feature requests, this is the place to post them. Please note your idea may already be something we have already discussed and decided against, or something we are working on privately, and we cannot be held responsible for any similarities in such instance. Whilst we cannot respond to every suggestion, your idea will be read and responded to where possible. Thank you for your input!
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

20x30, 40x15, 20x15 text mode

Post by mobluse »


There are these text modes (below) now, but I would also like 20x30, 40x15, 20x15 text. They would be useful for making apps for visually impaired or that could be seen from a long distance. If I must choose only one of these text modes to be added, I would prefer 20x15. I know these characters could be drawn using bitmap graphics, but I would prefer e.g. a 20x15 text mode that works using PRINT in BASIC. Clarified feature request: Line wrap and screen editing should work as normal with e.g. 20x15 text mode.























$00

40x30 text

 

$01

80x30 text

(currently unsupported)

$02

80x60 text

 

$80

320x200@256c

40x25 text

X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

20x30, 40x15, 20x15 text mode

Post by JimmyDansbo »



Quote




10 SCREEN 0:REM 40X30

20 POKE $9F2A,32

20 POKE $9F2B,32



Gives you 20x15

You can omit line 10 and still get the same result, but then your cursor disappears.

Have a look at the VERA documenation and search for HSCALE or VSCALE

Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

20x30, 40x15, 20x15 text mode

Post by mobluse »


Thanks! but there are problems with it. I wrote:


Quote




10 SCREEN 0:REM 40X30

20 POKE $9F2A,32

30 POKE $9F2B,32

40 PRINT "X16   ";

50 GOTO 40



and RUN it and press Esc, but then "BREAK IN 40" and "READY." is not seen until I press Enter a number of times, and then it appears, but then there is no cursor and you cannot list the program. This 20x15 mode would need to be a bit improved so that line wrap works and the cursor is the same as before.

X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
User avatar
desertfish
Posts: 1096
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

20x30, 40x15, 20x15 text mode

Post by desertfish »


yeah, the interactive basic prompt will not "recognise" the resolution to be lower than 40x30 characters.

Your program however can deal with this just fine, If you're not printing text lines that wrap over the screen edges.  Just contrain everything within 20 columns and 15 rows and you should be ok

User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

20x30, 40x15, 20x15 text mode

Post by JimmyDansbo »



Quote




10 SCREEN 0

20 POKE $9F2A,32

30 POKE $9F2B,32

40 POKE $386,20

50 POKE $387,15



This should solve it, although the addresses $386 and $387 might change with new releases of the KERNAL

Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

20x30, 40x15, 20x15 text mode

Post by mobluse »


I tested this:


Quote




10 SCREEN 0

20 POKE $9F2A,32

30 POKE $9F2B,32

40 POKE $386,20

50 POKE $387,15

60 N=0

70 PRINT N;

80 N=N+1

90 GOTO 70



but it skips some numbers each third line when printing 4-digit numbers. I think line wrap and the screen editor should work as normal in 20x15 text mode.

X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

20x30, 40x15, 20x15 text mode

Post by JimmyDansbo »


I don't know how to solve that, but as @desertfish said, as long as your program stays within the 20x15 range, you should be good to go.

 

Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
Elektron72
Posts: 137
Joined: Tue Jun 30, 2020 3:47 pm

20x30, 40x15, 20x15 text mode

Post by Elektron72 »


Although this won't fix the skipped numbers, I recommend that you add these lines:


Quote




52 POKE $388,16

54 POKE $389,14



The kernal uses these variables, and sets them when switching to other screen modes. Therefore, setting them will likely make 20x15 mode act a bit more normal.

kelli217
Posts: 531
Joined: Sun Jul 05, 2020 11:27 pm

20x30, 40x15, 20x15 text mode

Post by kelli217 »



43 minutes ago, mobluse said:




I tested this:



but it skips some numbers each third line when printing 4-digit numbers. I think line wrap and the screen editor should work as normal in 20x15 text mode.



It skips on the two-digit numbers as well. They just go by so fast that you don't see them unless you add a delay in the loop.

User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

20x30, 40x15, 20x15 text mode

Post by JimmyDansbo »


How did you find out about the $388 and $389 addresses ? Do they actually do anything? I don't see any difference...

Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
Post Reply