First post, by pardream
everyone, I'm studying to write asm program.
The test program below:
;calculate xxx*16+yyy->zzz
dseg segment
xxx dw 1234h
yyy dw 5678h
zzz dd ?
dseg ends
;
cseg segment
assume cs:cseg, ds:dseg
start:
mov ax, dseg
mov ds,ax
mov ax,xxx
mov dx,ax
mov cl,4
shl ax,cl
mov cl,12
shr dx,clb
mov ah,4ch
int 21h
cseg ends
end start
very simple program, compiler and link it with tasm/tlink OK, but when I run it,
I found the first 2 byte in data segment was replaced by 013b, I wonder why this happened.
Can anybody answer it?
Email:fogflower@gmail.com