Skip to content

Commit

Permalink
Fix "null" asm build.
Browse files Browse the repository at this point in the history
Exposed by an attempt to build on 32-bit Linux.
  • Loading branch information
scarybeasts committed Oct 24, 2022
1 parent 942ae75 commit c3a3497
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions asm/null/asm_common_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,7 @@ void
asm_emit_pull_word_to_scratch(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_debug_trampoline(void) {
}
20 changes: 20 additions & 0 deletions asm/null/asm_inturbo_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,16 @@ asm_emit_instruction_DEC_scratch_interp(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_inturbo_DEX(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_inturbo_DEY(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_instruction_EOR_imm_interp(struct util_buffer* p_buf) {
(void) p_buf;
Expand All @@ -318,6 +328,16 @@ asm_emit_instruction_INC_scratch_interp(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_inturbo_INX(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_inturbo_INY(struct util_buffer* p_buf) {
(void) p_buf;
}

void
asm_emit_instruction_JMP_scratch_interp(struct util_buffer* p_buf) {
(void) p_buf;
Expand Down
6 changes: 5 additions & 1 deletion asm/null/asm_jit_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ asm_jit_enter(void* p_context,
int64_t countdown,
void* p_mem_base) {
(void) p_context;
(void) jump_addr;
(void) p_start_addr;
(void) countdown;
(void) p_mem_base;
return 0;
}

void
asm_jit_interp_trampoline(void) {
}

0 comments on commit c3a3497

Please sign in to comment.