[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Styled output in Poke programs!
|
From: |
Jose E. Marchesi |
|
Subject: |
Re: Styled output in Poke programs! |
|
Date: |
Sun, 20 Oct 2019 22:49:51 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Oh, and in case you wonder how it works at the PVM level...
(poke) defun foo = void: { printf "Name: %<string:%s%> Age: %<integer:%i32d%>",
"Joe", 39; }
(poke) .vm dis f foo
note "foo"
$L1:
prolog
pushf
push "Name: "
prints
push "string"
begsc
push "Joe"
prints
push "string"
endsc
push " Age: "
prints
push "integer"
begsc
push 39
printi 32, 10
push "integer"
endsc
push ""
prints
popf 1
push null
return
exitvm
Note the begsc and endsc instructions...
Salud!