18 lines
161 B
NASM
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 1
|
|
pushc '\n'
|
|
wrchr
|
|
rsf
|
|
ret
|