emu8086 抱怨 "Unterminated string" 在数据库中有一个长字符串
emu8086 complains about "Unterminated string" with a long string in a DB
我是 8086 汇编编程的新手,我有一个问题。
我有一个大约 1400 个字符的字符串。当我尝试将其定义为:
.data
mystring DB '(string with 1400 characters)'
我收到一个错误
"Unterminated string".
我正在使用 emu8086 模拟器。我认为我的字符串不适合 DB
。有什么办法可以让大字符串保持字节数吗?
我已经手动检查过了,最大长度好像是 1010。
关于 emu8086 的链接之一也可以找到:
The expansion of DUP operand should not be over 1020 characters! (the expansion of last example is 13 chars), if you need to declare huge array divide declaration it in two lines (you will get a single huge array in the memory). - source
但是正如评论中所建议的那样,您可以将两行或更多行彼此相邻放置,并且在内存中它们将是连续的,布局与使用大行时相同。
mystring DB '<1010>*A'
mystring_cont DB 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
我是 8086 汇编编程的新手,我有一个问题。
我有一个大约 1400 个字符的字符串。当我尝试将其定义为:
.data
mystring DB '(string with 1400 characters)'
我收到一个错误
"Unterminated string".
我正在使用 emu8086 模拟器。我认为我的字符串不适合 DB
。有什么办法可以让大字符串保持字节数吗?
我已经手动检查过了,最大长度好像是 1010。
关于 emu8086 的链接之一也可以找到:
The expansion of DUP operand should not be over 1020 characters! (the expansion of last example is 13 chars), if you need to declare huge array divide declaration it in two lines (you will get a single huge array in the memory). - source
但是正如评论中所建议的那样,您可以将两行或更多行彼此相邻放置,并且在内存中它们将是连续的,布局与使用大行时相同。
mystring DB '<1010>*A'
mystring_cont DB 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAA'