RosettaCodeData/Task/Variables/8086-Assembly/variables-1.8086

7 lines
177 B
Plaintext

.data
MyVar word 0FFFFh ;the leading zero is just to help the assembler tell that this is a number, it's not actually part of the variable.
.code
mov ax, word ptr [ds:MyVar]