X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fz80%2Fmain.c;h=8fb6b0a2d18ef96d13784d134f62ddb09dbb1e97;hb=d2da99feec099aa224e1db53bc5a1ed42ed51ec9;hp=99a518ddc909d0ad2b1210228885f5360ae00646;hpb=67a7d48073f066e319f43a8e8e4e827d5c88afd3;p=fw%2Fsdcc diff --git a/src/z80/main.c b/src/z80/main.c index 99a518dd..8fb6b0a2 100644 --- a/src/z80/main.c +++ b/src/z80/main.c @@ -112,7 +112,7 @@ _gbz80_init (void) } static void -_reset_regparm () +_reset_regparm (void) { _G.regParams = 0; } @@ -603,6 +603,7 @@ PORT z80_port = "CODE", "DATA", "ISEG", + NULL, /* pdata */ "XSEG", "BSEG", "RSEG", @@ -627,6 +628,16 @@ PORT z80_port = { z80_emitDebuggerSymbol }, + { + 255, /* maxCount */ + 3, /* sizeofElement */ + /* The rest of these costs are bogus. They approximate */ + /* the behavior of src/SDCCicode.c 1.207 and earlier. */ + {4,4,4}, /* sizeofMatchJump[] */ + {0,0,0}, /* sizeofRangeCompare[] */ + 0, /* sizeofSubtract */ + 3, /* sizeofDispatch */ + }, "_", _z80_init, _parseOptions, @@ -708,6 +719,7 @@ PORT gbz80_port = "CODE", "DATA", "ISEG", + NULL, /* pdata */ "XSEG", "BSEG", "RSEG", @@ -732,6 +744,16 @@ PORT gbz80_port = { z80_emitDebuggerSymbol }, + { + 255, /* maxCount */ + 3, /* sizeofElement */ + /* The rest of these costs are bogus. They approximate */ + /* the behavior of src/SDCCicode.c 1.207 and earlier. */ + {4,4,4}, /* sizeofMatchJump[] */ + {0,0,0}, /* sizeofRangeCompare[] */ + 0, /* sizeofSubtract */ + 3, /* sizeofDispatch */ + }, "_", _gbz80_init, _parseOptions,