English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 14 August 2021, 19:25   #1
jotd
This cat is no more
 
jotd's Avatar
 
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
jotd is offline  
Old 14 August 2021, 20:43   #2
Don_Adan
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.
Don_Adan is offline  
Old 14 August 2021, 21:06   #3
jotd
This cat is no more
 
jotd's Avatar
 
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.
jotd is offline  
Old 14 August 2021, 21:25   #4
Don_Adan
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.
Don_Adan is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:52.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06962 seconds with 12 queries