mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
Add addition and subtraction for integers, build macros, dgo building, and build/load test (#35)
* see if math works on windows * add dgo * windows debug * windows debug 2 * one more debug try * add extra debug print and change logic for slashes * update * again * try again * remove build game * remove build game * add back build-game * remove runtime from test * test * reduce number of files * go to c++ 14 * big stacks * increase stack size again * clean up cmake files
This commit is contained in:
@@ -86,13 +86,21 @@ void CodeGenerator::do_function(FunctionEnv* env, int f_idx) {
|
||||
auto& bonus = allocs.stack_ops.at(ir_idx);
|
||||
for (auto& op : bonus.ops) {
|
||||
if (op.load) {
|
||||
assert(false);
|
||||
if (op.reg.is_gpr()) {
|
||||
m_gen.add_instr(IGen::load64_gpr64_plus_s32(op.reg, op.slot * GPR_SIZE, RSP), i_rec);
|
||||
} else {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
ir->do_codegen(&m_gen, allocs, i_rec);
|
||||
for (auto& op : bonus.ops) {
|
||||
if (op.store) {
|
||||
assert(false);
|
||||
if (op.reg.is_gpr()) {
|
||||
m_gen.add_instr(IGen::store64_gpr64_plus_s32(RSP, op.slot * GPR_SIZE, op.reg), i_rec);
|
||||
} else {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user