org 100h
.data
msg1 db 10,13,’Positive Sign
′;msg2db10,13,′NegativeSign
’;
.code
mov ax,@data;
mov ds,ax;
xor ax,ax;
mov ax,15;
cmp ah,0;positive is start with 0 bit and negative by 1 bit in reg
je positive;
mov ah,09h;
mov dx,offset msg2;
int 21h;
jmp exit;
positive:
mov ah,09h;
mov dx,offset msg1;
int 21h;
jmp exit;
exit:
mov ah,04ch;
int 21h
ret