Screen modes

Started by dthrone, 13:15, 22 September 10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dthrone

Is it possible to change the screen mode directly from BASIC using the gate array?  I can't seem to get it to work.

Bryce

Isn't that what the "mode" command does? Mode 0, mode 1 and mode 2 ? Or have I mis-understood the question?

Bryce.

arnoldemu

Quote from: dthrone on 13: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
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

TFM

#3
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 ;-)

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

dthrone

Quote from: arnoldemu on 15: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


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?

TFM

Quote from: dthrone on 14: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.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Powered by SMFPacks Menu Editor Mod