njvm/programs/prog7.asm
2023-12-09 22:40:18 +01:00

18 lines
161 B
NASM

//
// prog04.asm -- call/ret with args, and with ret value
//
pushc 12
rdint
mul
wrint
call proc
halt
proc:
asf 0
pushc '\n'
wrchr
rsf
ret