Posted: Thu Aug 23, 2012 7:08 pm
I'd add the directories to the dependencies, then have one rule to make them. If they exist, the dependencies are met and the rule isn't used; if they don't, the rule creates them.
Sega Megadrive/Genesis development
https://gendev.spritesmind.net/forum/
I am total noob now in this, but what this ints exactly?you need to disable ints, turn on the sram, read/write it, turn off the sram, then enable ints.
Ok, i found function void SYS_setInterruptMaskLevel (u16 value) in documentation.TmEE co.(TM) wrote:interrupts
VBL (frame) and HBL (line)
Code: Select all
SYS_setInterruptMaskLevel(7)
Code: Select all
SYS_setInterruptMaskLevel(3)
Unless you're using the light gun support in the controller code, then you need to use level 1, not level 3.Stef wrote:Exactly
Useto prevent any VDP interrupt then useCode: Select all
SYS_setInterruptMaskLevel(7)
to re enable them. We don't care about the external interrupt.Code: Select all
SYS_setInterruptMaskLevel(3)
External is not level 2 ? but as we don't need it we usually set mask interrupt to 3 (so horizontal interrupt are not masked)Chilly Willy wrote:Unless you're using the light gun support in the controller code, then you need to use level 1, not level 3.Stef wrote:Exactly
Useto prevent any VDP interrupt then useCode: Select all
SYS_setInterruptMaskLevel(7)
to re enable them. We don't care about the external interrupt.Code: Select all
SYS_setInterruptMaskLevel(3)
![]()
Not a big deal... you'll know if you're using a light gun as you need to look if they're available and then set the controller support to turn on the gun(s).
Code: Select all
#define WPLAN 0xB000
#define HSCRL 0xB800
#define SLIST 0xBC00
#define APLAN 0xC000
#define BPLAN 0xE000