-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgfxa_stub.c
More file actions
89 lines (66 loc) · 2.01 KB
/
gfxa_stub.c
File metadata and controls
89 lines (66 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* gfxa_stub.c
* Stub implementations for assembly functions
* These are now handled by SDL compatibility layer
*/
#include "compat.h"
#ifdef __cplusplus
extern "C" {
#endif
/* These functions are implemented in sdl_compat.c
* This file exists to satisfy any direct references
* during the transition from assembly to C/SDL
*/
/* Video mode functions - implemented in sdl_compat.c */
/* void setmode(int mode) - in sdl_compat.c */
/* void cls(char *screen) - in sdl_compat.c */
/* void screenswap(char *screen) - in sdl_compat.c */
/* void setpalette(char *colorlist) - in sdl_compat.c */
/* Mouse functions - implemented in sdl_compat.c */
/* uint16_t initmouse(void) - in sdl_compat.c */
/* uint16_t readmbutton(void) - in sdl_compat.c */
/* void relpos(uint16_t *x, uint16_t *y) - in sdl_compat.c */
/* Keyboard functions - implemented in sdl_compat.c */
/* void setkb(void) - in sdl_compat.c */
/* void resetkb(void) - in sdl_compat.c */
/* Additional assembly stubs that might be needed */
/* Fast memory operations - use standard C library */
void *fmemcpy(void *dest, const void *src, size_t n) {
return memcpy(dest, src, n);
}
void *fmemset(void *s, int c, size_t n) {
return memset(s, c, n);
}
/* Timer interrupt stub */
volatile unsigned int timer_ticks = 0;
unsigned int get_timer_ticks(void) {
return get_ticks(); /* Use SDL timer */
}
/* Sound Blaster function stubs */
void sb_Reset(int baseport) {
(void)baseport;
/* Stub - no operation */
}
void sb_DacSpkrOn(int baseport) {
(void)baseport;
/* Stub - no operation */
}
void sb_DacSpkrOff(int baseport) {
(void)baseport;
/* Stub - no operation */
}
void sb_Speed(int baseport, int speed, unsigned char value) {
(void)baseport;
(void)speed;
(void)value;
/* Stub - no operation */
}
void sb_Play(int baseport, int buffsize) {
(void)baseport;
(void)buffsize;
/* Stub - no operation */
}
/* Graphics function stubs */
extern void Blit8(int bmap, int x, int y, int image);
#ifdef __cplusplus
}
#endif