Archived
1
0

initialized flag and program counter registers

This commit is contained in:
Erick
2022-01-28 11:48:57 +01:00
parent d3afa8b2f1
commit 5b434febe8
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,3 @@
TARGET ?= a.out
SRC_DIRS ?= ./src
@@ -19,3 +18,5 @@ clean:
$(RM) $(TARGET) $(OBJS) $(DEPS)
-include $(DEPS)
# if "make" does not work on shell, try "make -d"
+9
View File
@@ -54,8 +54,17 @@ enum flags {
FL_NEG = 1 << 2, // N
};
int main(int argc, const char* argv[]) {
enum registers RG;
enum opcodes OP;
reg[RG_COND] = FL_ZRO;
reg[RG_PC] = 0x3000; //0x3000 is default
}