OS_Claim (0x1F)
Steve Pampling (1551) 8170 posts |
Possibly because Adrian is someone used to other OS’s that don’t expose the bottom end of the system anywhere near as much/well. |
Rick Murray (539) 13840 posts |
An additional benefit – unless Adrian’s code is extremely specific to the Pi, it will work on other supported RISC OS platforms when using the API. Does the Beagle or Panda offer at least two available high resolution timers? One for RISC OS and one for us? If the answer is Yes then this will “just work”. We talk to the HAL and the HAL talks to the hardware. That is how it should be – for HAL means exactly that → Hardware Abstraction Layer. As much as possible software should use the standard API and not try to do clever tricks, for history is littered with examples of software (primarily copy protection schemes) ultimately failing due to being too clever for its own good or doomed to work with only one specific piece of hardware. |
Steve Pampling (1551) 8170 posts |
Well it doesn’t crash on an emulated RPC when the emulation is using RO5…
I have to say that my normal reaction to such things was always to see how I could “unprotect” the item in question. No intention of piracy, I just didn’t like the lock down. I fixed a bug or two in a database my mother and colleague used at work, but had to unprotect it to get at the software to fix it. Easy fix, bit of a pain using a disc editor on a clone disc to access the software. |
Jeff Doggett (257) 234 posts |
Is there any way of determining whether a timer is already in use?
|
Jon Abbott (1421) 2651 posts |
I don’t believe there’s a way to check if a timer is in use, there was some discussion about adding this functionality, but I’m not sure what the final outcome was. A layer above the HAL that virtualises them, to allow as many timers as a user requests would be useful. |