it beeps twice! it should only beep once! when i compile, var's value turns to 0 or var's address isn't what its sapose to be.cmp [var], 61h
je debug
cmp [var], 0
je debug2
debug:
mov ax, 0E07h
int 10h ;beep once
jmp $
debug2:
mov cx, 2
mov ax, 0E07h
.test:
int 10h ;beep twice
loop .test
var db 61h
it beeps once. which is what it should do.....mov [var], 61h
cmp [var], 61h
je debug
cmp [var], 0
je debug2
debug:
mov ax, 0E07h
int 10h ;beep once
jmp $
debug2:
mov cx, 2
mov ax, 0E07h
.test:
int 10h ;beep twice
loop .test
var db 61h
can any one help trying to fix this?