-
Notifications
You must be signed in to change notification settings - Fork 1
/
rompack.c
116 lines (68 loc) · 2.46 KB
/
rompack.c
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#include "rompack.h"
#include "plateform.h"
#include "config.h"
#include "sound.h"
#include "crtc.h"
#include "ppi.h"
#include "vga.h"
#include "z80.h"
#define MODULENAME "Rompack"
int ED_00( core_crocods_t *core )
{
core->Z80.AF.Byte.High = 0xAA;
return( 2 );
}
int ED_01( core_crocods_t *core ) { // PACKSCR
return 2;
}
int ED_02( core_crocods_t *core ) { return 2; }
int ED_03( core_crocods_t *core ) { return 2; }
int ED_04( core_crocods_t *core ) { return 2; }
int ED_05( core_crocods_t *core ) { return 2; }
int ED_06( core_crocods_t *core ) { return 2; }
int ED_07( core_crocods_t *core ) { return 2; }
int ED_08( core_crocods_t *core ) { return 2; }
int ED_09( core_crocods_t *core ) {
return 2;
}
int ED_0A( core_crocods_t *core ) { // SSH
static char Nom[ 258 ];
static char Argument[ 258 ];
int i;
for ( i = 0; i < RegB; i++ )
Nom[ i ] = Peek8Ext( core, ( USHORT )( RegHL + i ) );
Nom[ i ] = 0;
for ( i = 0; i < RegC; i++ )
Argument[ i ] = Peek8Ext( core, ( USHORT )( RegDE + i ) );
Argument[ i ] = 0;
printf("%s\n%s\n", Nom, Argument);
memcpy(core->runParam[0], Nom, 258);
memcpy(core->runParam[1], Argument, 258);
strcpy(core->runApp, "ssh");
core->runStartApp = 1;
return 2;
}
int ED_0B( core_crocods_t *core ) { return 2; }
int ED_0C( core_crocods_t *core ) { return 2; }
int ED_0D( core_crocods_t *core ) { return 2; }
int ED_0E( core_crocods_t *core ) { return 2; }
int ED_0F( core_crocods_t *core ) { return 2; }
int ED_10( core_crocods_t *core ) { return 2; }
int ED_11( core_crocods_t *core ) { return 2; }
int ED_12( core_crocods_t *core ) { return 2; }
int ED_13( core_crocods_t *core ) { return 2; }
int ED_14( core_crocods_t *core ) { return 2; }
int ED_15( core_crocods_t *core ) { return 2; }
int ED_16( core_crocods_t *core ) { return 2; }
int ED_17( core_crocods_t *core ) { return 2; }
int ED_18( core_crocods_t *core ) { return 2; }
int ED_19( core_crocods_t *core ) { return 2; }
int ED_1A( core_crocods_t *core ) { return 2; }
int ED_1B( core_crocods_t *core ) { return 2; }
int ED_1C( core_crocods_t *core ) { return 2; }
int ED_1D( core_crocods_t *core ) { return 2; }
int ED_1E( core_crocods_t *core ) { return 2; }
int ED_1F( core_crocods_t *core )
{
return( 2 );
}