From 12e5aa4913b5561cbc324cf9c43f66d4153bb3b2 Mon Sep 17 00:00:00 2001 From: GabrielTofvesson Date: Mon, 8 Apr 2019 22:12:11 +0200 Subject: [PATCH] Remove NOP argument requirement --- microcompiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microcompiler.kt b/microcompiler.kt index 27cc3af..6f78e46 100644 --- a/microcompiler.kt +++ b/microcompiler.kt @@ -1,5 +1,5 @@ enum class ALU(val value: Int, val parameters: Int = 1) { - NOP(0b0000), // No operation + NOP(0b0000, 0), // No operation MOV(0b0001), // Move from bus to AR MVN(0b0010), // Move inverse of bus to AR MVZ(0b0011, 0), // Set AR to zero