--- previous/src/includes/sysReg.h 2018/04/24 19:30:36 1.1.1.2 +++ previous/src/includes/sysReg.h 2018/04/24 19:34:15 1.1.1.4 @@ -1,3 +1,13 @@ +#pragma once + +#ifndef __SYSREG_H__ +#define __SYSREG_H__ + + +#ifdef __cplusplus +extern "C" { +#endif + /* NeXT system registers emulation */ /* Interrupts */ @@ -47,7 +57,10 @@ #define RELEASE_INT 0 void set_interrupt(Uint32 intr, Uint8 state); -int get_interrupt_level(void); +int scr_get_interrupt_level(Uint32 interrupt); + +extern Uint32 scrIntStat; +extern Uint32 scrIntMask; void set_dsp_interrupt(Uint8 state); @@ -84,6 +97,13 @@ void HardclockWriteCSR(void); void HardclockReadCSR(void); void System_Timer_Read(void); +void System_Timer_Write(void); void ColorVideo_CMD_Write(void); void color_video_interrupt(void); + +#ifdef __cplusplus +} +#endif + +#endif /* __SYSREG_H__ */