Sfoglia il codice sorgente

Add comments to all tests

ApisNecros 1 mese fa
parent
commit
84b1f2cbf9

+ 1 - 0
tests/addition-with-vars.icasm

@@ -1,3 +1,4 @@
+// Stores two values into "variables", and then adds them
 ld @op1, 10
 ld @op2, 37
 add @op2, @op1, 0d2

+ 1 - 0
tests/addition.icasm

@@ -1,3 +1,4 @@
+// Stores two values at specific memory addresses, and then adds them
 ld 0d9, 10
 ld 0d10, 37
 add 0d9, 0d10, 0d2

+ 1 - 0
tests/labels.icasm

@@ -1,3 +1,4 @@
+// Uses lables to calculate the first 10 numbers in the Fibonacci sequence
 ld @regA, 0              // jz, seq register
 ld @regB, 0              // storage space
 ld @counter, 10          // loop counter

+ 1 - 0
tests/multiply.icasm

@@ -1,3 +1,4 @@
+// Stores two numbers at specific addresses in memory, and then multiplies them
 ld 0d6, 15
 ld 0d7, 5
 mult 0d6, 0d7, 0d8

+ 1 - 0
tests/output.icasm

@@ -1,3 +1,4 @@
+// Stores a value at a specific memory address, and then outputs one immediate value and the stored value
 ld 0d10, 44
 out 21
 out 0d10