- Joined: 14 Mar 2018
- Posts: 19
|
counters/timers
Posted: Wed Apr 04, 2018 10:40 am
|
Looking at some of the docs ( RTW's doc for example ) there doesn't seem to be any counters or timers on the system? Or is there something that can be used to effectively get one?
I guess the refresh counter on the Z80 counts "instructions" and not "clocks" right?
|
- Joined: 25 Feb 2006
- Posts: 874
- Location: Belo Horizonte, MG, Brazil
|
Posted: Wed Apr 04, 2018 11:10 am
|
The only timer-like stuff the SMS has would be the VBL interrupt.
|
- Joined: 05 Sep 2013
- Posts: 3828
- Location: Stockholm, Sweden
|
Posted: Wed Apr 04, 2018 12:17 pm
|
depending on the resolution needed, you could either use VBL, HBL ... or none. No real counters/timers are present in the hardware.
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14745
- Location: London
|
Posted: Wed Apr 04, 2018 1:34 pm
|
And the r register is rarely used for more than a PRNG seed, it can't count very high.
|