我开始学习集会,我正在使用汇编语言艺术书。
我在试图在书中运行一个例子时遇到了问题。这是这个程序:
program DemoVars;
#include( "stdlib.hhf" );
static
InitDemo: int32 := 5;
NotInitialized: int32;
begin DemoVars;
// Display the value of the pre-initialized variable
stdout.put( "InitDemo's value is ", InitDemo, n1 );
// Input an integer value from the user and display that value
stdout.put( "Enter an integer value: " );
stdin.get( NotInitialized );
stdout.put( "You entered: ", NotInitialized, n1 );
end DemoVars;
当我尝试编译它时,它会在程序假设要打印变量值的行中给出四个错误:
stdout.put: unknown data type
<n1 is type "">.
Near: << > >>
This output type is not supported.
Near: << > >>
请有人帮助我。
答案 0 :(得分:1)
修正:将n1更改为nl
(“这是新行”)