s = space; l = line break; t = tab
ssstsssttsl
tl
ssl
sssttsssstl
tl
ssl
This only prints F
and not a
. I am not very certain about stacks and it is probably something to do with that.
s = space; l = line break; t = tab
ssstsssttsl
tl
ssl
sssttsssstl
tl
ssl
This only prints F
and not a
. I am not very certain about stacks and it is probably something to do with that.
I put your code into this online IDE: https://whitespace.kauaveel.ee/
It includes an on-the-fly disassembler, which is nice.
As is, your code produces an "Unexpected EOF" error. This is because of the last linebreak (
l
). Removing that givesfrom the disassembler. I.e. what you thought was your second
push
is actually alabel
instruction.This is because the
printc
instruction is actually justtlss
. You have an extral
after that, which combined with the following two spaces formslss
(label
).Fixed code: