can not use screenRes on terminal

DOS specific questions.
Post Reply
Gablea
Posts: 1104
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

can not use screenRes on terminal

Post by Gablea »

Hi everyone,

Does anyone know what a RMCB error is?

I am trying to set a screen to 640x480 (via screenres 640,480 and SCREEN 12 ) under MS-DOS 6.22 but the PC crashes with a RMCB Error

if I start to print to the screen WITH OUT setting any screen sizes it works fine

but the PC reports it can handle resolutions up to 1024x768

am i loosing my grip on reality or am I doing something MARJORY WRONG here
fxm
Moderator
Posts: 12106
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: can not use screenRes on terminal

Post by fxm »

RMCB = real-mode callback ???

- Have you tested it without ScreenLock/ScreenUnlock instruction ?
- Have you tested it without mouse driver installed ?
Gablea
Posts: 1104
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: can not use screenRes on terminal

Post by Gablea »

tested with out mouse (as this is a keyboard only system)
and yes tried with out screen lock and unlock command and it works

This is pure DOS

if I use the following code

Code: Select all

	ScreenLock
		Color 1,1
		Cls
		Color 15,0
		Print "Hello"
		Color 0,15
		Print "TEST"
		Color 5,8
		Print "TEST COLOR again"
	ScreenUnLock
it is happy and displays a blue background with the correct colored text but if I add ScreenRes 640,480 that is when the app crashes and displays the RMCB error
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

Re: can not use screenRes on terminal

Post by 1000101 »

Make sure that your terminal meets the system requirements for gfxlib2. If you are having issues with unexpected crashes you could have buggy drivers, stub drivers or non-existent drivers. Ideally you will want VESA 2.0 compliant drivers. Beware that some hardware ROMs come with "stub" VESA implementations. They are enough of an implementation to report on the hardware installed but not enough to actually control and use it. UniVBE can be used on most hardware configurations to provide the best results.

GfxLib Overview
Post Reply