CPCWiki forum

General Category => Programming => Topic started by: dthrone on 11:15, 22 September 10

Title: Screen modes
Post by: dthrone on 11:15, 22 September 10
Is it possible to change the screen mode directly from BASIC using the gate array?  I can't seem to get it to work.
Title: Re: Screen modes
Post by: Bryce on 13:43, 22 September 10
Isn't that what the "mode" command does? Mode 0, mode 1 and mode 2 ? Or have I mis-understood the question?

Bryce.
Title: Re: Screen modes
Post by: arnoldemu on 13:50, 22 September 10
Quote from: dthrone on 11:15, 22 September 10
Is it possible to change the screen mode directly from BASIC using the gate array?  I can't seem to get it to work.
yes, but the interrupt will set it back again.

Maybe one of these sources will help?

http://www.cpctech.org.uk/source.html
Title: Re: Screen modes
Post by: TFM on 16:39, 22 September 10
True this...

And don't forget the secret screen mode 3 ;-)


Ok, in case you have an assembler, use this:

Switch to mode 1:

di
exx
ld c,&8d
exx
ei
ret

To switch to mode 2:
di
exx
ld c,&8e
exx
ei
ret


But it may not help you reading the characters properly any longer ;-)

Title: Re: Screen modes
Post by: dthrone on 12:38, 26 September 10
Quote from: arnoldemu on 13:50, 22 September 10
yes, but the interrupt will set it back again.

Maybe one of these sources will help?

http://www.cpctech.org.uk/source.html (http://www.cpctech.org.uk/source.html)


Thanks!  I think the problem is definitely the interrupt.  Can you give me a brief explanation on this or refer me to a specific document to read up on it?
Title: Re: Screen modes
Post by: TFM on 00:49, 28 September 10
Quote from: dthrone on 12:38, 26 September 10


Thanks!  I think the problem is definitely the interrupt.  Can you give me a brief explanation on this or refer me to a specific document to read up on it?

You will not have problems with the interrupts if you use my solution.
Powered by SMFPacks Menu Editor Mod