Your browser does not support JavaScript!'

Download CS401 Assignment 2 Solution Spring 2020 docx ~ VUSs

Welcome to VUSs, as you guys know. VUSs is all about Computer Science's fundamentals and Tests Preparation.
All published articles are organized in simple, easy, and short English sentences to familiarize the students with computer science.
In that respect today's article is Download CS401 Assignment 2 Solution Spring 2020 docx


Today's Topic
Download CS401 Assignment 2 Solution Spring 2020 docx





CS401 Assignment 2 Solution

[org 0x0100] ; offset
jmp start ; jump to start label

Array1: db 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M'
Array2: db 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
Array3: db ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',

start:
mov bx, 0
mov cx, 13
lower_case:
mov al, [Array1+bx]
mov dl, al
add dl, 32
mov [Array3+bx], dl
add bx, 1
loop lower_case

mov bx,0
mov cx, 13
upper_case:

mov al, [Array2+bx]
mov dl, al
sub dl, 32
mov [Array3+bx+13], dl
add bx, 1
loop upper_case

mov bx,0
mov cx, 26
print_result:
mov al, [Array3+bx]
mov dl, al
mov ah, 02
int 21h
add bx, 1
loop print_result

exit:
mov ax , 0x4c00 ; terminate
int 0x21



CS401

Course Title Solution Download Status
CS401 Assembly Language Download Now

Uploaded

Would you like it!

VU Past Papers

Post a Comment

0 Comments

^