Let's take for eg. the address 010h and register DS.
How can i access their values?
I have a function that prints numbers as a binary code ( because that's what i want ). I want to print the content as a binary and decimal code. Leave alone the decimal code, i will figure that out later.
How can i access the value at the address 010h? What about the value of the register DS?
I've searched the whole internet but... still i can't figure it out.
What I have tried:
This function only prints a number in binary. Insead of 010h it should be the content of the address 010h...
mov bl, 010h
mov cx, 8
print: mov ah, 2 ; print function.
mov dl, '0'
test bl, 10000000b ; test first bit.
jz zero
mov dl, '1'
zero: int 21h
shl bl, 1
loop print
; print binary suffix:
mov dl, 'b'
int 21h