Autor
| How can I change the screen mode on an MSX2+?
|
papa_november msx novice Mensajes: 18 | Publicado: Febrero 03 2008, 03:54   |
Is it possible to change the screen mode from 40 to 80 columns from within MSXDOS/BASIC? How about switching from NTSC to PAL?
|
|
[D-Tail]
 msx guru Mensajes: 3027 | Publicado: Febrero 03 2008, 04:51   |
40 to 80 columns in DOS: mode 40<return>
40 to 80 columns in BASIC: width 80<return>
NTSC to PAL in DOS: doesn't exist by default. Do BASIC<return>VDP(10)=2<return>_SYSTEM<return>
NTSC to PAL [actually, 60Hz to 50Hz, but wots the difference eh?  ] in BASIC: VDP(10)=2<return>
PAL to NTSC in DOS: doesn't exist by default. Do BASIC<return>VDP(10)=0<return>_SYSTEM<return>
PAL to NTSC in BASIC: VDP(10)=0<return> |
|
Yukio msx professional Mensajes: 828 | Publicado: Febrero 03 2008, 05:18   |
The difference is that Brazil uses PAL-M 60 hz mode ...
Also there is "NTSC with 50 hz" too!
For change the color signal someone would need to replace the crystal ...
|
|
papa_november msx novice Mensajes: 18 | Publicado: Febrero 03 2008, 06:09   |
Thanks guys!
I discovered that you have to type "SCREEN 0" before any of the 80/40 colum-related commands will work. I also found out that you can make the machine boot with the current settings every time using the SET SCREEN command- this has the side effect of also making DOS use 80 columns on startup.
Is there any way to create an AUTOEXEC.BAT entry to do the PAL/NTSC switch? Maybe have it run a tiny BASIC program that does it?
|
|
[D-Tail]
 msx guru Mensajes: 3027 | Publicado: Febrero 03 2008, 12:25   |
Well, you could e.g. search the web for a program 50HZ.COM/60HZ.COM, put these on your (hard)disk and call them from the AUTOEXEC.BAT. The problem is finding these tools. Maybe someone can come up with a small program for you.
|
|
manuel msx guru Mensajes: 3638 | Publicado: Febrero 03 2008, 13:46   |
or get BASIC.COM, a program that lets you execute basic statements in MSX-DOS. Make an autoexec.bat with: BASIC VDP(10)=VDP(10)OR2
|
|
[D-Tail]
 msx guru Mensajes: 3027 | Publicado: Febrero 03 2008, 19:08   |
@manuel: doesn't that have to be "BASIC.COM VDP(10)=VDP(10)OR2" then? BASIC is as far as I know a built-in statement to return to the BASIC interpreter.
|
|
manuel msx guru Mensajes: 3638 | Publicado: Febrero 03 2008, 23:51   |
oh, it's called "BASKOM", not "BASIC". (BASic KOMmando.)
|
|
NYYRIKKI msx master Mensajes: 1535 | Publicado: Febrero 04 2008, 10:02   |
Here is one solution... Type this on BASIC:
A$="F321E8FF7EEE0277D3993E89D399C9":FORI=0TO14:POKEI-14847,VAL("&H"+MID$(A$,I*2+1,2)):NEXT:BSAVE"HZ.COM",&HC600,&HC60F
... Now to change between 50/60Hz in DOS just type "HZ"
|
|
|
|
|