Author Topic: the first mode...  (Read 2010 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
the first mode...
« on: 11:27, 23 January 13 »
After fixing a bug in my emu, this lead me to this question:

What is the first mode that the cpc displays following reset?

We know that the mode and rom configuration register is reset to 0, to enable lower rom, upper rom and set mode 0.
We also know that the mode is set after 2 cycles of hsync is seen by the gate-array from the crtc.

But what is the mode immediately after reset and before the first hsync?

I am assuming it's mode 0,  so that a reset forces the mode and the pixel shifters are working in mode 0... but I can't guarantee that.
So what is it?


there is a way to test this ;)

so, you need to set hsync (R3 lower) to be at a position greater than R0. Make the screen large (R1>R0 and R6>R4), and clear the screen to any pen from 8 to 15. Then set the colour of that pen, then measure what colour is sent out of the cpc by the ga.



My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.034
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2979
  • Likes Given: 5177
Re: the first mode...
« Reply #1 on: 16:49, 23 January 13 »
Is there any practical consequence in this? :)


Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.942
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3859
  • Likes Given: 395
Re: the first mode...
« Reply #2 on: 16:59, 23 January 13 »
It's a bit like the question: How long was the Universe a singularity before the big bang happened?

If no screen is being drawn, then it's not in any mode.

That said, If you edit the firmware and remove all mode commands, what would appear on the screen when you turned it on?

Bryce.

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.034
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2979
  • Likes Given: 5177
Re: the first mode...
« Reply #3 on: 14:58, 24 January 13 »
Quote from: Bryce
It's a bit like the question: How long was the Universe a singularity before the big bang happened?
Depends. Counting from inside the singularity or from an observer's PoV?

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.942
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3859
  • Likes Given: 395
Re: the first mode...
« Reply #4 on: 15:12, 24 January 13 »
It shouldn't make a difference in this case. Besides, if it's a singularity, it couldn't be observed from outside :D

Bryce.

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.034
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2979
  • Likes Given: 5177
Re: the first mode...
« Reply #5 on: 15:15, 24 January 13 »
It's a theoretical model. You can do all you like with it.

Plus, even in astrophysics terms, I think a singularity doesn't preclude an exterior environment, like with black holes?

But I'm pretty certain it does make a difference in any case!

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.942
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3859
  • Likes Given: 395
Re: the first mode...
« Reply #6 on: 15:29, 24 January 13 »
Too far off topic (even in astronimcal terms :D) we can continue this discussion in a PM if you like...

Bryce.

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.034
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2979
  • Likes Given: 5177
Re: the first mode...
« Reply #7 on: 15:30, 24 January 13 »
Cool, send me one :D


Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: the first mode...
« Reply #8 on: 15:47, 24 January 13 »
Is there any practical consequence in this? :)
not really, but the question is still valid and it's testable and can be answered.

for exact emulation, where this can be reproduced, ok, it's a little detail that is probably insignificant, but I just wondered it.


My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Grim

  • CPC6128
  • ****
  • Posts: 202
  • Country: gp
  • La pak ba, bèf ka pasé
    • THERE IS NO GAME
  • Liked: 133
  • Likes Given: 67
Re: the first mode...
« Reply #9 on: 22:24, 24 January 13 »
I am interested to know that detail too. Maybe someone with a LowerROM board could do the following tests with the attached ROM file (source included):
- Setup the gatest.rom as lower ROM
- Switch OFF/ON your CPC/Plus and report what you see on the screen.
- In case you see nothing (eg. black screen), press ESC to setup the palette and then report what you see.

At some point, you should see vertical stripes displayed on the screen. If you see the stripes before pressing ESC (ie. right after switching your CPC ON), then I'm interested to know what colors they are. In any case, I would like to know how many colors are displayed (so we can find out the video mode).

It would be great if that could be tested on a CPC and a Plus too.

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.942
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3859
  • Likes Given: 395
Re: the first mode...
« Reply #10 on: 23:06, 24 January 13 »
I'll give that a go tomorrow if I get time and take some photos.

Bryce.

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!
  • Liked: 1977
  • Likes Given: 4650
Re: the first mode...
« Reply #11 on: 23:51, 24 January 13 »
That said, If you edit the firmware and remove all mode commands, what would appear on the screen when you turned it on?

Bryce.

Haha, I was just reading the first post and had the same idea. Another great application for the LowerROM Box, now we are abouve to solve one of the last riddles of the magic CPC big bang.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus