rob.masm

mud++0.33/src/vm/rob.masm · 609 B

From the archive mud++0.33.tar.gz

Download the archive   « Back to the archive contents

!constant string Some string~
!funstart sample_fun
	initp 2
	pushc string You managed to call sample_fun.~
	pushl 0
	fcall a echo_fun
	ret
!funend

!funstart echo_fun
	initp 2
	pushl 1
	pushl 0
	icall a out_string__pPC_s
	ret
!funend

!funstart makeobj
	initp 2
	initl 1
	pushl 1
	icall a getObjPrototype__s
	isnull
	rjmp e OBJ_NOT_FOUND
	icall a copyObject__pObject
	popl 2
	pushl 0
	icall a inRoom__pThing
	pushl 2
	icall a toRoom__pObject_pRoom
	pushc string Done.~
	pushl 0
	icall a out_string__pPC_s
	ret
:OBJ_NOT_FOUND pushc string No such object~
	pushl 0
	icall a out_string__pPC_s
	ret
!funend

!end

Site Stats

Snippets: 1791
Codebases: 571