Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
62 user(s) are online (41 user(s) are browsing Forums)

Members: 0
Guests: 62

more...

Support us!

Headlines

 
  Register To Post  

Q: Cia.resource: obtaining PC after a timer IRQ ?
Not too shy to talk
Not too shy to talk


See User information
Is it possible to set up an OS-friendly timer irq and then obtain the adresse (PC) where the irq occured ?

I have working code for the OS friendly interrupt but dont know where in the stack or registers I can obtain the PC before the IRQ

Many Thanks


Edited by thellier on 2026/9/8 8:28:38
Go to top
Re: Q: Cia.resource: obtaining PC after a timer IRQ ?
Home away from home
Home away from home


See User information
@thellier

No Cia.resource is not for system friendly use..
its to allocate one of the 4 hardware timers in a Amiga500/1200/4000.

the only way to implement OS friendly timer is by using DoIO() / SendIO() timer.device API. And wait for a singals using Wait(), or in a loop SetSignal().
if want something async create a new process.


NallePuh can track en emulate CIA timers.
should also provide the nessary cia.resource, to alow old software to run..

The actual timing code, might be rewritten at some point, sense it uses high level timer.device, when it only need the delta time, this can done, using PowerPC assembly. And so should work in forbid states.. just fine..

Time keeping is not a issue, but the accuracy, and the real time register sates, might skip beats.


Edited by LiveForIt on 2026/9/9 7:30:04
Edited by LiveForIt on 2026/9/9 7:33:31
Edited by LiveForIt on 2026/9/9 8:21:05
Edited by LiveForIt on 2026/9/9 8:24:33
Edited by LiveForIt on 2026/9/9 8:26:26
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Q: Cia.resource: obtaining PC after a timer IRQ ?
Home away from home
Home away from home


See User information
@thellier

Its possible INTB_VERTB works, its not recommended.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top

  Register To Post

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project