From 6fbbb3bb49bd981769217eabccc3c714dfdb501d Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 8 Mar 2024 23:10:08 -0500 Subject: [PATCH] Added notes to keep track of Zombies shit ISA --- notes | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 notes diff --git a/notes b/notes new file mode 100644 index 0000000..da6cd1a --- /dev/null +++ b/notes @@ -0,0 +1,48 @@ +--------------- +-- Opcodes -- +--------------- + +Argless +NOP +HLT +RST + +Idfk +DBG + +Memory ops +MOV +PUSH +POP + +Branches +JMPA +JMP +JZ + +ALU stuff +CMP +INC +DEC + + +------------------------ +-- Addressing Modes -- +------------------------ +reg - Register +imm - Immediate +abs - Absolute +ida - Indirect absolute +idr - Indirect register + +---- Examples ---- + +Assembly -- Mode -- Function +--------------------------------------------------------- +mov A, 5 -- reg imm -- A <- 5 +mov [$23], 5 -- ida imm -- mem[mem[23]] <- 5 +mov $69, A -- abs imm -- mem[69] <- A +mov 420, [A] -- imm idr -- mem[ip + 1] <- mem[A] +add $13, $32 -- ida ida -- mem[13] <- mem[13] + mem[32] +inc A, 14 -- reg imm -- A <- A + 1 | Z <- (A == 14) # Cursed zero flag +