Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 emu8086 中使用 F0H 的初始值定义一个字节变量,我收到以下错误:
代码:
X DB F0H
错误:
(1) 一个 HEX 值必须加零前缀,例如:0Ch
这个错误是为了什么?
我们需要在变量的值之前添加 0 或者我们说我们在变量的值之前附加 0 否则会出错
像这样定义
x db 0f0h
这是因为 HEX 值可以与以字母开头的符号区分开来。