Maxi-/Uber-Edit

Basic and Machine Language

Moderator: Moderators

User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Maxi-/Uber-Edit

Post by tokra »

Name: Maxi-Edit / Uber-Edit
Author: tokra
Released: PAL Jan, 28nd, 2017, NTSC Jan, 30th, 2017
Requirements: VIC-20 with at least 8K RAM and RAM in either 3K-area ($0400), BLK5 ($a000) or IO2/3 ($9800)

Description: Make use of the full screen of the VIC-20 on PAL from BASIC. Either "CRT-friendly" at 26x32 characters or "VICE-friendly" at 28x35 characters for PAL, or 24x26 / 25x29 for NTSC.

Screenshot:
Image
Image

Download: http://www.tokra.de/vic/maxiedit/maxiedit.zip

It always bothers me that the VIC-20 has such a small screen area, especially on PAL. A lot of programs use a much larger screen are, but it is hard using this from BASIC - until now! Using these programs you can use a screen of 26x32 characters for a total of 832 characters from BASIC. This resolution is compatible with most PAL-displays. Also included is a version especially for VICE or those few monitors that allow to adjust for full overscan like the Commodore 1084. Here you have 28x35 characters for a total of 980 characters on the screen, which is just 20 characters shy of what the C64 shows. For NTSC the values are 24x26 and 25x29.

The included D64-file contains a simple loader that lets you choose which version you want to run and where it should be placed in memory. Also the loader allows you to adjust the picture to your display device.

Note: When using BASIC for technical reasons you can only use three full lines when editing, so the total BASIC-program-line length is reduced to 78 or 84 respectively (instead of the 88 you usually have). For NTSC these values are 72 and 75.
Last edited by tokra on Mon Jan 30, 2017 4:37 pm, edited 1 time in total.
Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Re: Maxi-/Uber-Edit

Post by Boray »

Wow! I have to try this right away!
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Re: Maxi-/Uber-Edit

Post by Boray »

Tried it briefly! Wow! This is what I've wished for for 30 years! It isn't even slowing the vic-20 down, and it's still there after a runstop-restore. This is just amazing. Thank you so much for this! :D
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxi-/Uber-Edit

Post by Mike »

:mrgreen:

Any chance for a custom version with the text screen located at $0400, the screen editor code directly behind that, and the BASIC start as low as possible? :)

Cheers,

Michael
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Maxi-/Uber-Edit

Post by tokra »

Possible for sure, but if you want the maximum amount free for BASIC, it would make more sense to put this program in BLK5 or IO2/3. I suppose this is for a VFLI-modded VIC - in that case you at least will have BLK5 free.
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Maxi-/Uber-Edit

Post by Mike »

@tokra: PM sent
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Re: Maxi-/Uber-Edit

Post by eslapion »

Any chance for an NTSC version ?

There is less space on NTSC screens for there is more than the normal 22x23 config.
Be normal.
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Maxi-/Uber-Edit

Post by tokra »

Theoretically NTSC is possible, but the maximum realistisc visible resolution for TVs would be 24x26 or 25x29 if you take VICE's overscan limits. Not too much of a gain especially since NTSC screen centering seems even more varied than PAL. I think 22x23 was the resolution Commodore considered safe for NTSC when creating the VIC back in the day.
Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Re: Maxi-/Uber-Edit

Post by Boray »

Some pictures...
Attachments
TextWalker running on Maxi-Edit
TextWalker running on Maxi-Edit
QBench running on Maxi-Edit
QBench running on Maxi-Edit
Maxi Edit
Maxi Edit
Normal Screen
Normal Screen
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Re: Maxi-/Uber-Edit

Post by eslapion »

tokra wrote:Theoretically NTSC is possible, but the maximum realistisc visible resolution for TVs would be 24x26 or 25x29 if you take VICE's overscan limits. Not too much of a gain especially since NTSC screen centering seems even more varied than PAL. I think 22x23 was the resolution Commodore considered safe for NTSC when creating the VIC back in the day.
I think 24x26 would be really nice.

For one thing VICE (set to NTSC) displays the complete displayable signal a 6560 can offer. Also, later standard flat CRT TVs displayed a much larger area than older "round corner" CRT TVs and this does allow for more columns and rows to be displayed.

The original 22x23 was just ok for the cheap round CRTs most people had back in 1981. My own RCA flat CRT TV was made in 2009 and offers at least 10% more viewing area as these were adjusted for showing DVDs.
Be normal.
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Maxi-/Uber-Edit

Post by tokra »

Ok, please re-download the ZIP-archive. I have updated it for NTSC: 24x26 for MaxiEdit, and 25x29 for UberEdit. I have also included a feature that lets you position the screen using the cursor-keys when using the loader. This might come in handy if your CRT differs from my settings.

Mike noticed that the loader might cause problems if you have an adapter in IO2/3 as the test for RAM in IO2/3 changes a byte in that memory-area which might trigger an unwanted reaction if you have a card installed in that area. I use $9a00 for the RAM-test. I restore the value to the original after the test, but if you have a card that uses exactly this memory cell it might cause unwanted results. I know of no card off hand that might cause problems, but just be aware of this. I did not want to hide this version in the loader, because otherwise it might be overlooked completely. On the other hand if you have RAM in IO2/3 this would be a nice place to put this little program.
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Re: Maxi-/Uber-Edit

Post by eslapion »

tokra wrote:Ok, please re-download the ZIP-archive. I have updated it for NTSC: 24x26 for MaxiEdit, and 25x29 for UberEdit. I have also included a feature that lets you position the screen using the cursor-keys when using the loader. This might come in handy if your CRT differs from my settings.
Hey thanks !! Will try that!
Be normal.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: Maxi-/Uber-Edit

Post by ral-clan »

This is very, very nice!
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
aeb
Vic 20 Amateur
Posts: 67
Joined: Sat Jun 19, 2004 2:06 pm

Re: Maxi-/Uber-Edit

Post by aeb »

Great work Tokra! I was actually a bit surprised that all this could be done without hacking the ROM :) Of course, people have done 40-wide screen routines before, but this one is much more useful, because it's fast!
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Maxi-/Uber-Edit

Post by tokra »

Thanks! I was actually wondering why this has not been done before. Basically I only re-directed the vectors for CHROUT and CHRIN to RAM and copied all the necessary parts of the screen-editor from ROM to RAM. Then armed with a ROM-listing I just needed to change all fixed values of columns and rows to the new numbers and move the screen-line-link-table from zero-page to higher RAM.
Post Reply