Emu8086 complains about "Unterminated string" with a long string in DB

I am new to programming the 8086 Assembly and I have a question.

I have a string about 1400 characters in size. When I try to define it as:

.data
mystring DB '(string with 1400 characters)'

I get an error

"Unterminated string".

I am using emu8086 emulator. I think my line does not fit in DB. Is there a way to save a huge string in bytes?

+4
source share
1 answer

I checked it manually and it looks like the maximum length is 1010.

Also on one of the links about emu8086 this can be found:

DUP 1020 ! ( - 13 ), ( ). -

, , , , , .

mystring      DB '<1010>*A'
mystring_cont DB 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
+7

Source: https://habr.com/ru/post/1694430/


All Articles