| View previous topic :: View next topic |
| Author |
Message |
Lemon64 Donator!


Joined: 25 Jul 2003 Posts: 951 Location: Phoenix, AZ (USA)
|
Posted: Mon Jun 01, 2009 4:19 pm Post subject: Switching to 80 columns in C128 mode in VICE? |
|
|
I can't seem to switch to 80 columns in C128 mode on VICE. What is the procedure to do so?
Paul _________________ It's always 2:06. |
|
| Back to top |
|
 |
C64 Enthusiast


Joined: 04 Jan 2009 Age: 42 Posts: 753 Location: Chattanooga, TN. USA
|
Posted: Mon Jun 01, 2009 4:32 pm Post subject: |
|
|
Press f7 then reset.
(alt -r)
8.2 THE 40/80 KEY
You can use the {40/80 display} key to set the screen width as either 40 or 80 columns. Pressing this key will only have an effect when one of the following actions is taken:
The power is turned ON.
The {reset} button is pressed.
The {run/stop} and {restore} buttons are pressed simultaneously.
The {40/80 display} key acts like a {shift lock} key: it locks when you press it, and does not release until you press it again. If this key is up (not pressed) when one of the three conditions above occurs, the screen is set to 40 columns. If you press the key down, causing it to lock, and one of the three conditions listed above then occurs, the screen is set to 80 columns. Once the computer is running in one screen format (40- or 80-columns), you cannot switch to the other format using the {40/80 display} key.
Later,
dabone
Last edited by dabone on Mon Jun 01, 2009 4:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
Administrator

Joined: 09 Feb 2003 Posts: 4186 Location: HML, Finland Favorite games: H.E.R.O., Paradroid, Thrust
|
Posted: Mon Jun 01, 2009 4:32 pm Post subject: |
|
|
F7 followed by alt-R works here. |
|
| Back to top |
|
 |
Lemon64 Donator!


Joined: 25 Jul 2003 Posts: 951 Location: Phoenix, AZ (USA)
|
Posted: Mon Jun 01, 2009 4:41 pm Post subject: |
|
|
Thanks. Got it working.
Paul _________________ It's always 2:06. |
|
| Back to top |
|
 |
Groupie in Training


Joined: 09 Oct 2011 Age: 42 Posts: 94 Location: Airdrie, AB, Canada
|
Posted: Sun Dec 11, 2011 8:50 pm Post subject: |
|
|
Hi, I'm trying to find a BASIC command or way to switch the mode to 40 to 80 columns through the program. This is an application that displays a map of a country in graphic mode on the 40 columns mode AND at the same time display text info on the 80 columns mode (so, there are 2 monitors connected to the C128). When I start the application, I need the text mode (and cursor) to be on the 80 columns monitor, without expecting the user to use the 40/80 switch (because this app is running in winvice, and there is no 40/80 stich, just the F7-Alt-R thing that I can't expect users to know how and when to press it). Any ideas? |
|
| Back to top |
|
 |
Newbie
Joined: 18 Feb 2011 Posts: 18
|
Posted: Tue Dec 13, 2011 1:06 am Post subject: |
|
|
You can use the RGR-function to check which mode you are in. Check the C128-manual. Then you can use ESC-X to switch if necessary. I used this in an old program of mine to switch to 40-column mode if I was in 80-column:
| Code: | | IF RGR(0)=5 THEN PRINT "PROGRAM RUNS IN 40 COLUMN-MODE": PRINT CHR$(27)"X" |
So the other way around would be:
| Code: | | IF RGR(0)<>5 THEN PRINT "PROGRAM RUNS IN 80 COLUMN-MODE": PRINT CHR$(27)"X" |
Also you don't need to press Reset after F7. ESC+PGUP is enough (this simulates RUN-STOP/RESTORE). ESC is mapped to RUN-STOP - PGUP is mapped to RESTORE. BTW: If you want to push the C128-ESC-key you need to push F1 on the PC-keyboard! This is because the top 12 keys of the C128 are mapped to the 12 F-keys on the PC-keyboard (apart from the cursor-keys). |
|
| Back to top |
|
 |
Groupie in Training


Joined: 09 Oct 2011 Age: 42 Posts: 94 Location: Airdrie, AB, Canada
|
Posted: Tue Dec 13, 2011 3:04 am Post subject: |
|
|
Hi, it worked just fine, thanks. It finished like this:
3 IF RGR(0)>=5 THE GOTO 8: ELSE PRINT "THIS PROGRAM USES 80 COLUMN MODE": PRINT
4 PRINT CHR$(27)"X": REM FUERZO CAMBIO A 80 COLUMNAS
For some reason, my 80 column-mode returns a 6 (in Vice) and not a 5 as I would expect, that why I modified the line. Not sure what a graphics mode 6 is, C128 manual give a 5 as maximum. |
|
| Back to top |
|
 |
|