Logical XOR operation

1 year ago
Microprocessors

Assume cs: code, ds: data

data segment

op1 dw 00h

op2 dw 00h

res dw 00h

data ends

code segment

start: mov ax ,data

mov ds, ax

mov ax,op1

mov bx,op2

xor ax,bx

mov res,ax

int 3h

code ends

end start

INPUT: OP1:01h OP2:00h

OUTPUT:

RES:01h

0
Rusma Khadka
Sep 17, 2022
More related questions

Questions Bank

View all Questions