Fix for GCC compilation issue

This commit is contained in:
Stefan Arentz 2017-01-17 03:18:32 +00:00
parent 8800bf2b9f
commit 9a94156a5b

View File

@ -53,7 +53,8 @@ uint8_t _cpu_pull_byte(struct cpu_t *cpu) {
} }
uint16_t _cpu_pull_word(struct cpu_t *cpu) { uint16_t _cpu_pull_word(struct cpu_t *cpu) {
return (uint16_t) cpu->page1[++cpu->state.sp] | ((uint16_t) cpu->page1[++cpu->state.sp] << 8); uint16_t w = (uint16_t) cpu->page1[++cpu->state.sp];
return w | ((uint16_t) cpu->page1[++cpu->state.sp] << 8);
} }
uint8_t _cpu_stack_free(struct cpu_t *cpu) { uint8_t _cpu_stack_free(struct cpu_t *cpu) {