![]() |
![]() |
#1 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,368
|
timer interrupt to emulate 60Hz
Hi,
I want to emulate a 60Hz game logic but with a PAL display. So I can't use VBLANK for the processing... Any ready to use CIA setup to trigger a CIA interrupt (level 2 would be good) at 60Hz? Plus the check to see if it's a keyboard or timer interrupt. This CIA stuff is beyond me. If I'm asking too much, just ignore me ![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,039
|
If this is only game logic, then i think then you can use Vblank 50 Hz to simulate 60 Hz. You can call game logic routine once for 4 VBlank 50 Hz and twice for 1 VBlank 50 Hz.
|
![]() |
![]() |
#3 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,368
|
ah yes, much simpler. Or count 200000 microsecs and if counter > 1666666 microsecs call update and subtract. Repeat.
|
![]() |
![]() |
#4 |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,039
|
From my memory some Amiga musics works at 100 Hz and i dont hear difference if i use 100 Hz timer or 50 Hz timer twice. But i dont have perfect ears of course. Then i think you can use 50 Hz to simulate 60 Hz game logic. But of course you can test this in real.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blitter interrupt during VERTB interrupt | phx | Coders. Asm / Hardware | 38 | 01 October 2021 19:54 |
Timer instantly causes interrupt | TCH | Coders. Asm / Hardware | 8 | 20 July 2021 15:48 |
example of a CIA timer interrupt in assembler using cia.resource | Apollo | Coders. Asm / Hardware | 3 | 05 July 2013 08:40 |
Creating a 50/60Hz interrupt? | oRBIT | Coders. General | 5 | 13 May 2010 21:13 |
CIA timer interrupt handler called twice during mod playback | absence | Coders. General | 5 | 16 March 2009 18:55 |
|
|