x=2 (高级语言)
MOV x,2 (汇编语言)
C7 06 0000 0002 (机器代码)
{ Sample program in TINY language - compute factorial } read x;{input an integer}if 0<x then {don‘t compute if x<=0}
fact := 1;
repeat
fact := fact*x;
x := x-1
until x = 0;
write fact{output factorial of x}
end
以后会对TINY语言编译器进行详细介绍的
原文地址:http://blog.csdn.net/wanghao109/article/details/26000437