2013-07-04 75 views
0

我開始學習裝配,我正在使用裝配藝術語言書。HLA - 用stdout.put打印輸出變量

我在試圖在本書中運行示例時遇到問題。這檔節目在這裏:

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

可能有人請幫幫我。

回答

1

修復:將n1更改爲nl(「這是新行」)