Author Topic: Screen modes  (Read 2195 times)

0 Members and 1 Guest are viewing this topic.

dthrone

  • Guest
Screen modes
« 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.

Online Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.454
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
    • Awards
Re: Screen modes
« Reply #1 on: 15: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.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
    • Awards
Re: Screen modes
« Reply #2 on: 15:50, 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

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
    • Awards
Re: Screen modes
« Reply #3 on: 18: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 ;-)
 
 
« Last Edit: 18:44, 22 September 10 by TFM/FS »
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline dthrone

  • CPC6128
  • ****
  • Posts: 216
  • Country: gb
    • SOHDE
    • Awards
Re: Screen modes
« Reply #4 on: 14:38, 26 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?
 

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
    • Awards
Re: Screen modes
« Reply #5 on: 02:49, 28 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