Skip to content

Commit

Permalink
Updated opcode and register code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed May 31, 2024
1 parent cf87b57 commit e1e4846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aqvm/interpreter/bytecode/opcode/opcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int AqvmInterpreterBytecodeOpcode_LDC(
int AqvmInterpreterBytecodeOpcode_LOAD(
struct AqvmMemoryRegister_Register* ptr,
struct AqvmMemoryRegister_Register* operand) {
*operand = *ptr;
//*operand = *ptr;
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions aqvm/memory/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef AQ_AQVM_MEMORY_REGISTER_H_
#define AQ_AQVM_MEMORY_REGISTER_H_

#include <stdbool.h>

enum AqvmMemoryRegister_ValueType {
// TODO(Register): Waiting for the improvement of the register.
AqvmMemoryRegisterValueType_INT,
Expand Down

0 comments on commit e1e4846

Please sign in to comment.