[b][red]This message was edited by ajtr211 at 2002-9-13 22:20:50[/red][/b][hr]
This is an instruction from an
example program can anyone explain
the output from the debugger?
var1 SBYTE -4,-2,3,1
var2 WORD 1000h,2000h,3000h,4000h
var3 SWORD -16,-42
var4 DWORD 1,2,3,4,5
;What will be the value of the destination
;operand after each of the following
;instructions executes in sequence?
mov ax,var2 ;a answer 1000h
mov ax,var2+4 ;b answer 3000h
mov ax,var3 ;c answer FFF0h
mov ax,var3-2 ;d answer 4000h
Can someone explain how question 'd'
is worked out by the debugger for it to
equal 4000h inside AX
Thanks in ad John