Skip to content

Commit

Permalink
The structure of the registers has been adjusted.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed May 2, 2024
1 parent a0e9243 commit 2720f0c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
13 changes: 13 additions & 0 deletions aqvm/interpreter/register/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 AQ authors, All Rights Reserved.
# This program is licensed under the AQ License. You can find the AQ license in
# the root directory.

cmake_minimum_required(VERSION 3.10)

include_directories(${PROJECT_SOURCE_DIR})

set(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/register.c)

add_library(AqvmInterpreterRegister STATIC ${SOURCES})

target_link_libraries(AqvmInterpreterRegister PRIVATE AqvmRuntime)
23 changes: 12 additions & 11 deletions aqvm/interpreter/register/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
#ifndef AQ_AQVM_INTERPRETER_REGISTER_REGISTER_H_
#define AQ_AQVM_INTERPRETER_REGISTER_REGISTER_H_

typedef struct {
enum AqvmInterpreterRegisterRegister_ValueType {
// TODO(Register): Waiting for the implementation of the register.
};
typedef union {
// TODO(Register): Waiting for the implementation of the register.
} AqvmInterpreterRegisterRegister_Value;

AqvmInterpreterRegisterRegister_ValueType type;
AqvmInterpreterRegisterRegister_Value value;
struct AqvmInterpreterRegister_Register{
AqvmInterpreterRegister_ValueType type;
AqvmInterpreterRegister_Value value;

// TODO(Register): Wait developing some functions for the register.

}AqvmInterpreterRegister_Register;
};

enum AqvmInterpreterRegister_ValueType {
// TODO(Register): Waiting for the implementation of the register.
};

union AqvmInterpreterRegister_Value{
// TODO(Register): Waiting for the implementation of the register.
};

#endif

0 comments on commit 2720f0c

Please sign in to comment.