修复编译错误

This commit is contained in:
HEYAHONG 2025-03-09 19:31:22 +08:00
parent 73774e5974
commit fba01e9ed4
No known key found for this signature in database
GPG Key ID: 97E3E469FE2C920B
2 changed files with 2 additions and 2 deletions

View File

@ -908,7 +908,7 @@ for ($i = 0; $i < 256; $i++) {
}
print INST_DEF "};\n";
print INST_DEF "#else\n";
print INST_DEF "OPCODE_FP opcode_table[256];\n";
print INST_DEF "extern OPCODE_FP opcode_table[256];\n";
print INST_DEF "#endif\n\n\n";
print INST_DEF "#endif /* INSTRUCTIONS_8051_H */\n";

View File

@ -13,7 +13,7 @@
#define PACKAGE_DESCRIPTION "Emulator for 8051 family microcontrollers"
struct options_t {
typedef struct options_t {
char *g;
int pram_size; /* Maximum program memory size. */
int iram_size; /* Maximum internal ram size. */