commit 0736066708e07324b3f6e3429e56ea635978f46d
parent 8b1664f884fc1019a9fccf29363a1c5dcfad500e
Author: neau <neau@web>
Date: Wed, 22 Jun 2022 16:35:49 +0200
empty web commit
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Uxn.mdwn b/Uxn.mdwn
@@ -7,7 +7,7 @@ Unlike most "fantasy platforms" such as [[TIC-80]], Uxn was designed with an imp
The [[C]] implementation of the virtual machine is about 100 lines. A self-hosted assembler for the Uxntal assembly language is about 400 lines of Uxntal, and assembles to a 1200 bytes rom.
-This stack-machine has no registers - Program Counter(PC), Memory(M), Devices(D) and Return Stack(rs). Uxn has 32 opcodes:
+This stack-machine has 32 opcodes, no registers, Program Counter(PC), Memory(M), Devices(D) and Return Stack(rs). Given stack a b c, the c item being the last to be added, and the first to be removed:
80 a b c M[PC+1] 08 a b?c 10 a b M[c8] 18 a b+c
01 a b c+1 09 a b!c 11 a {M[c8]=b} 19 a b-c