CSE 322 Summer 2018 Lab 6

June 25, 2018

Lecture from Lab doc 3
->Logic Instructions
not, and, or, xor, test

//code
mov ax, 1111111100000000b
mov bx, 0000000011111111b

and ax, bx
and bx, ax
and ax, 0111111111111111b
or ax, bx
or bx, ax
or bx, 0000100000000000b
not ax
xor ax, bx
xor bx, ax
xor bx, bx
xor ax, ax
test ax, bx

// Case conversion
top:
mov ah, 1
int 21h

;and al, 11011111b
or al, 00100000b
mov ah, 2
mov dl, al
int 21h
mov dl, 0dh
int 21h
mov dl, 0ah
int 21h
jmp top

->Shift Instructions
SHL, SAL, SHR, SAR
-> Rotate Instructions
ROL, ROR, RCL, RCR

->Example 7.1-7.13

Homework
Section 7.4: Binary and Hex I/O
Total 4 codes must be submitted in the next class

Leave a Reply