add "swap" instr, document buffer ops

This commit is contained in:
2020-10-10 13:59:45 +02:00
parent aae9db0598
commit d5821e3552
8 changed files with 204 additions and 109 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
(
(ld r0 65)
(sym buf r7)
(mkbfv buf (r0 66 67 68 '\n'))
(mkbf buf (r0 66 67 68 '\n'))
(bfrpop @stdout @buf)
(s.nem -1)
+2 -2
View File
@@ -4,9 +4,9 @@
(def T_HELLO 0)
(def T_UNK 1)
(mkbf TXT)
(mkbfv r0 "*** Type ascii to uppercase. Press q to quit. ***\n")
(mkbf r0 "*** Type ascii to uppercase. Press q to quit. ***\n")
(bfins @TXT T_HELLO r0)
(mkbfv r0 "🐈")
(mkbf r0 "🐈")
(bfins @TXT T_UNK r0)
; Print string from the table