fixed emulator "struct emu"-dependent calls
This commit is contained in:
11
BaS_gcc/include/setjmp.h
Normal file
11
BaS_gcc/include/setjmp.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef _SETJMP_H_
|
||||
#define _SETJMP_H_
|
||||
|
||||
#include "bas_types.h"
|
||||
|
||||
typedef uint32_t jmp_buf[18];
|
||||
|
||||
extern int setjmp(jmp_buf env);
|
||||
extern void longjmp(jmp_buf env, int val);
|
||||
|
||||
#endif /* _SETJMP_H_ */
|
||||
@@ -35,7 +35,7 @@
|
||||
#define __X86EMU_X86EMU_H
|
||||
|
||||
#include "bas_types.h"
|
||||
|
||||
#include "setjmp.h"
|
||||
|
||||
/*
|
||||
* General EAX, EBX, ECX, EDX type registers. Note that for
|
||||
@@ -111,8 +111,6 @@ struct X86EMU_regs {
|
||||
uint8_t __pad[3];
|
||||
};
|
||||
|
||||
typedef uint32_t jmp_buf[18];
|
||||
|
||||
struct X86EMU
|
||||
{
|
||||
char *mem_base;
|
||||
|
||||
Reference in New Issue
Block a user