SEI CLI Moaners
And then there is the SEI / CLI moan-bandwagon that some of the coding snobs fixate on.
Essentially, since in most instances where you would wish to set up an IRQ / IRST there is no need to first disable the IRQ with SEI, actually doing so revels you to be an unskilled script kiddie or a cargo cult moron.
Except, of course, there are real world instances where you might actually need to do that, such as:
- Where you have used a still-active IRQ-based loader to load a new game level that needs to be initialised with a new IRQ schema.
- Where you have been messing around with IRQs (as I often did as a teenager) and then try to load a game without turning your IRQ experiment off.
It actually reminds me of the times when the teenage me would play around with expanded sprites, get bored with that and then load a game, only to find the game's coder had assumed nobody would ever load their game from anything but a "clean", newly switched on Commodore 64, the result being still expanded sprites making the newly loaded game look weird.
Which nicely summarises the issue: assume makes as ass out of u and me.
PS: And maybe use CLD as well at the start of your code... just in case someone left decimal mode turned on ;-)
Interested in coding on the C64? Check out this book on Amazon (and yes, I get a tiny pittance if you buy via the banner below):
PS: Don't forget to check the home page regularly for more articles like this and visit the Everything64 Forum to comment further.
And of course, kindly follow me on Twitter and subscribe to my YouTube channel!