0

我开始学习汇编,并且正在使用《汇编语言艺术》一书。

我在尝试运行书中的示例时遇到问题。这是这里的程序:

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: << > >>

有人可以帮我吗?

4

1 回答 1

1

修复:将 n1 更改为nl (“这是新行”)

于 2013-07-04T12:21:23.907 回答