Fixed bug in PUSHR

This commit is contained in:
Jeremiah Orians 2017-12-24 13:13:36 -05:00
parent ae9ee1df10
commit 21239523bd
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
*/
#include "vm.h"
unsigned_vm_register performance_counter;
uint64_t performance_counter;
#ifdef TRACE
void record_trace(char* c);

View File

@ -1750,7 +1750,7 @@ void CMPSKIPUI_L(struct lilith* vm, struct Instruction* c)
void PUSHR(struct lilith* vm, struct Instruction* c)
{
writeout_bytes(vm, vm->reg[c->reg1], vm->reg[c->reg0], reg_size);
vm->reg[c->reg1] = vm->reg[c->reg1] + next_instruction_size(vm);
vm->reg[c->reg1] = vm->reg[c->reg1] + reg_size;
}
void PUSH8(struct lilith* vm, struct Instruction* c)
{