6 lines
380 B
Text
6 lines
380 B
Text
.data
|
|
myString db "Hello World!",0 ;the zero is the null terminator
|
|
.code
|
|
mov bx, seg myString ;load into bx the segment where myString is stored.
|
|
mov ds, bx ;load this segment into the data segment register. On the 8086, segment registers can't be loaded directly.
|
|
mov bx, offset MyString ;the memory address of the beginning of myString. The "H" is stored here.
|