Write an assembler program that will perform the following operations:
- 01011011B and 11000111B
- 10110011B or 10111101B
- 01101001B xor 10101101B
- not 10011001B
Display the results of each operation as an ASCII string of binary digits with an appropriate message or header on a separate line before the results.
hint: USE SHL to isolate each bit and jump carry.
hint: Use the DOS 21h interrupt service, function 2 for the digits.
Can someone please explain what needs to be done? I am very new at this and can't get anything going. If I can see the first one I'm sure I could get the rest going, I hope. I 'm just not sure how the output should look. This is what I have so far and I'm sure I'm way off. Thank you and I really appreciate the help.
.stack 100h
.model small
.386
.data
.code
main:
MOV AX, @DATA ; initialize DS
MOV DS, AX
mov al,01011011b
mov cl,11000111b
and ah, cl
shl al, cl
int 21h
MOV AH, 2 ; print the processed value of AL
MOV DL, BL
INT 21H
MOV AH, 4CH ; return control to DOS
INT 21H
end main