From 1977b7ad1e86d2b922737eb04741607e9c9a991a Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Fri, 24 Feb 2023 23:03:33 +1300 Subject: Better printing functions --- examples/fizzbuzz.dumb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/fizzbuzz.dumb') diff --git a/examples/fizzbuzz.dumb b/examples/fizzbuzz.dumb index f9aa648..3cd0dba 100644 --- a/examples/fizzbuzz.dumb +++ b/examples/fizzbuzz.dumb @@ -10,6 +10,6 @@ PROC MAIN ''' concat the two strings and copy the inc., if the string is empty, swap them ''' ++ OVER SWAP IF DUP "" == DO SWAP END ''' print the top of the stack, drop the next item, add 1 to inc. ''' - . DROP 1 + + PUTLN DROP 1 + END END -- cgit v1.2.1