I'm doing a sum and sub in Assembly (FASM) trying to get my result in decimal. I write the values that I'll sum int decimal. When I run it, it really gives me an output but it is a binary output. I can translate to decimal by myself, but what I really want is that the output be already a decimal.
name "add-sub"
org 100h
mov al, 10 ; bin: 00001010b
mov bl, 5 ; bin: 00000101b
add bl, al
sub bl, 1
mov cx, 8
print: mov ah, 2
mov dl, '0'
test bl, 10000000b
jz zero
mov dl, '1'
zero: int 21h
shl bl, 1
loop print
mov dl, 'b'
int 21h
mov ah, 0
int 16h
ret