News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_NewsBot

NoRecess - Adding support for interrupts in your programs

Started by NewsBot, 08:01, 05 March 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NewsBot

Adding support for interrupts in your programs
5 March 2011, 4:58 am

When I got back into CPC programming in 2008, I wondered at the time how could I achieve to create a slow graphical effect (taking several VBLs) without caring about the music needing to be replayed 50 times per second. The solution of course was to use interrupts, and this is what this new article is aimed at ! (also added in Articles section).

As usual, I absolutely don't consider myself as an expert, so please if you find mistakes or have suggestions I would be glad to complete the article with your input !

Source: NoRecess {the website} - Blog

This content has been fetched from a third-party page feed.

Optimus


I am glad about both recent articles in Norecess blog. I know, we have discussed before about memory or interrupts for music playing, when I was at Amstrad Expo and after in the pushnpop forum. I still didn't tried much to fix the music in my last demo with interrupts (I was lazy, needed some changes maybe) but maybe this is the moment I could read this article carefully and finally do this in my new framework. It would be interesting to see what else one can do with interrupts. I remember digital orgasm 3d bobs part where the bobs where moving in slower speed than 50hz but a logo in a split below was scrolling up at perfect 50hz. One might do this by mixing the bob code with the hardware code but interrupts would be the way to go. I am wondering how easy it is to do some stuff with them. Ok,. I will shut up now and read the article :)

norecess

Of course, you are not limited with only a music player, with interrupts.
You can by example do split screen the easy way without caring of sync.. (the way Prodatron did at the time)


One of the usage I'm actually thinking on my side would be for sprite management. There could be some points to think more about.. cf. simulating kind of hardware sprites of CPC+ through interrupts management, all in software

Powered by SMFPacks Menu Editor Mod