File:  [Tom Morton FrontierVM] / frontvm / hardware / int.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:57:15 2018 UTC (8 years, 2 months ago) by root
Branches: frontvm, MAIN
CVS tags: frontvm-20040517, HEAD
Tom Morton

/*
  Hatari
*/

// Interrupt handlers in system
enum {
  INTERRUPT_NULL,
  INTERRUPT_VIDEO_VBL_PENDING,
  
  MAX_INTERRUPTS
};

// Event timer structure - keeps next timer to occur in structure so don't need to check all entries
typedef struct {
  BOOL bUsed;                      // Is interrupt active?
  int Cycles;
  void *pFunction;
} INTERRUPTHANDLER;

extern void *pIntHandlerFunctions[];
extern int nCyclesOver;

extern void Int_Reset(void);
extern int Int_HandlerFunctionToID(void *pHandlerFunction);
extern void *Int_IDToHandlerFunction(int ID);
extern void Int_SetNewInterrupt(void);
extern void Int_AcknowledgeInterrupt(void);
extern void Int_AddAbsoluteInterrupt(int CycleTime, int Handler);
extern void Int_AddRelativeInterrupt(int CycleTime, int Handler);
extern void Int_RemovePendingInterrupt(int Handler);
extern BOOL Int_InterruptActive(int Handler);
extern int Int_FindCyclesPassed(int Handler);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.