Commodore 64 (C64) Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Switching to 80 columns in C128 mode in VICE?

 
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Other 8-bit Commodore computers
View previous topic :: View next topic  
Author Message
Paul Panks
Lemon64 Donator!
Lemon64 Donator!


Joined: 25 Jul 2003
Posts: 951
Location: Phoenix, AZ (USA)

PostPosted: Mon Jun 01, 2009 4:19 pm    Post subject: Switching to 80 columns in C128 mode in VICE? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 42
Posts: 753
Location: Chattanooga, TN. USA

PostPosted: Mon Jun 01, 2009 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
TNT
Administrator
Administrator


Joined: 09 Feb 2003
Posts: 4186
Location: HML, Finland Favorite games: H.E.R.O., Paradroid, Thrust

PostPosted: Mon Jun 01, 2009 4:32 pm    Post subject: Reply with quote

F7 followed by alt-R works here.
Back to top
View user's profile Send private message Visit poster's website
Paul Panks
Lemon64 Donator!
Lemon64 Donator!


Joined: 25 Jul 2003
Posts: 951
Location: Phoenix, AZ (USA)

PostPosted: Mon Jun 01, 2009 4:41 pm    Post subject: Reply with quote

Thanks. Got it working. Smile

Paul
_________________
It's always 2:06.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
pirulo69
Groupie in Training
Groupie in Training


Joined: 09 Oct 2011
Age: 42
Posts: 94
Location: Airdrie, AB, Canada

PostPosted: Sun Dec 11, 2011 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
tokra
Newbie


Joined: 18 Feb 2011
Posts: 18

PostPosted: Tue Dec 13, 2011 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message
pirulo69
Groupie in Training
Groupie in Training


Joined: 09 Oct 2011
Age: 42
Posts: 94
Location: Airdrie, AB, Canada

PostPosted: Tue Dec 13, 2011 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Other 8-bit Commodore computers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Tip: Get C64 Forever for super-comfy C64 emulation with pre-installed games, demos and other goodies!


Powered by phpBB © 2001, 2005 phpBB Group