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

7 lines
177 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
.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]