view samples/numparse.tp @ 362:7101ad443081

Add null terminator to string literals in x86 module and fix a bug that interfered with use of function name labels in call instructions
author Michael Pavone <pavone@retrodev.com>
date Sat, 25 Apr 2015 13:05:38 -0700
parents 74cab9b5f2a4
children
line wrap: on
line source

#{
	main <- {
		print: "42: " . ("42" int32) . ", -42: " . ("-42" int32) . "\n"
		print: "2147483647: " . ("2147483647" int32) . ", -2147483648: " . ("-2147483648" int32) . "\n"
		print: "1.23456789: " . ("1.23456789" parseFloat64) . "\n"
	}
}