Author Topic: How to get Z80 CPU clock?  (Read 711 times)

0 Members and 1 Guest are viewing this topic.

Offline MIRKOSOFT

  • C128 user
  • ******
  • Posts: 785
  • Age: 33
  • Location: Zvolen
  • Activity:
    3.6%
  • Country: sk
  • Reputation: 188
  • Gender: Male
  • C128 programmer
  • With us since: 13/02/2009
    YearsYearsYearsYears
    • View Profile
    • MIRKOSOFT
How to get Z80 CPU clock?
« on: May 19, 2011, 09:32 AM »
Hi!


I'm not sure if is Z80 CPU in Commodore mode only disabled or turned off.


If is only disabled, is possible to get CPU frequency in MHz?


In assembler of MOS, or also in Z80 asembler (for me for future use in programming Z80 CPU).


Many thanks for every help, reply or comments.


Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

64ever 128her
sixty-for-ever one-twenty-either

C128 = C64² + more

http://www.mirkosoft.sk

Offline Hydrophilic

  • 128D user
  • *******
  • Posts: 1214
  • Age: 41
  • Location: Earth... still!
  • Activity:
    0%
  • Reputation: 232
  • Gender: Male
  • With us since: 25/01/2007
    YearsYearsYearsYearsYearsYears
    • View Profile
    • H2Obsesson
Re: How to get Z80 CPU clock?
« Reply #1 on: May 20, 2011, 05:15 AM »
The Z80 is disabled in C128 mode when the 8502 is active.  The 8502 is disabled when the Z80 is active.  The only exception seems to be the bug in the MMU that lets you activate both CPUs at the same time, but only in C64 mode.
 
Unless somebody makes a special hardware mod, the Z80 runs effectively at twice the VIC character rate (that is, 1/4 the VIC pixel rate).  So on NTSC with 1.02 MHz clock frequency, Z80 runs at 2.04 MHz.  On PAL which has 0.98MHz clock frequency, the Z80 runs at 1.96 MHz.  Changing VIC settings to run in fast mode only seems to effect 8502... the Z80 does not seem to change speed unfortunately...
 
I think if you want to test for possibility of faster Z80 (through hardware modification) you would have to write a program in Z80 assembly language.
 
I'm kupo for kupo nuts!

 



Back to top