compiler can now recompile itself

This commit is contained in:
Ash Wolf 2023-01-14 19:11:33 +00:00
parent c12644aae1
commit 8078e7f897
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ include_directories(.)
include_directories(includes)
include_directories(sdk_hdrs)
add_compile_definitions(CW_PATCH_DEBUG)
# add_compile_definitions(CW_PATCH_DEBUG)
add_executable(mwcc
command_line/CmdLine/Src/Clients/CLStaticMain.c

View File

@ -297,7 +297,7 @@ static void I8_treecompare(SInt32 start, SInt32 end) {
d = b;
}
emitpcode(PC_SUBFC, a, a, selector_gpr);
emitpcode(PC_SUBFE, b, d, b);
emitpcode(PC_SUBFE, b, d, c);
emitpcode(PC_SUBFE, b, a, a);
emitpcode(PC_NEG, b, b);
emitpcode(PC_CMPI, 0, b, 0);