首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >stdout.put -使用HLA打印变量

stdout.put -使用HLA打印变量
EN

Stack Overflow用户
提问于 2013-07-04 19:54:59
回答 1查看 966关注 0票数 0

我开始学习汇编语言,我正在使用“汇编语言艺术”这本书。

我在书中运行一个例子时遇到了问题。下面是程序:

代码语言:javascript
复制
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;

当我尝试编译它时,在程序应该打印变量值的地方给出了四个错误,如下所示:

代码语言:javascript
复制
stdout.put: unknown data type
<n1 is type "">.
Near: << > >>

This output type is not supported.
Near: << > >>

有人能帮帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-04 20:21:24

Fix:将n1更改为nl ("which is new line")

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17469634

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档