CS401 Assignment 2 2023: Achieve 100% Correct Results with Sir Yousaf
Are you struggling to complete your CS401 Assignment 2? Are you looking for a 100% correct solution that will help you get a good grade? If so, then you've come to the right place! In this video, I will walk you through the entire CS401 Assignment 2 step-by-step. I will explain the concepts behind the assignment, and I will show you how to solve the problems. I will also provide you with the code that you need to complete the assignment. This video is perfect for students who are struggling with CS401 Assignment 2. It is also a great resource for students who want to learn more about the concepts behind the assignment.
What you will learn in this video In this video, you will learn the following: The concepts behind CS401 Assignment 2 How to solve the problems in CS401 Assignment 2 The code that you need to complete CS401 Assignment 2 Why you should watch this video There are many reasons why you should watch this video. Here are a few of them: This video will help you complete your CS401 Assignment 2. This video will help you learn more about the concepts behind CS401 Assignment 2. This video is a great resource for students who are struggling with CS401 Assignment 2. How to watch this video This video is available on YouTube. You can watch it by clicking on the link below:
CS401 Assignment 2 CS401 Assignment 2 2023 CS401 Assignment 2 100% correct Sir Yousaf Computer Science Programming Data Structures Algorithms
If you found this video helpful, please subscribe to my channel. I will be uploading more videos on CS401 and other computer science topics.
Welcome to our YouTube channel, where we provide valuable insights and guidance on CS401 Assignment 2. In this video, we will help you understand the key concepts and strategies to achieve a perfect score of 100% on your assignment.
CS401 Assignment 2 for the year 2023 is a crucial task that demands a thorough understanding of the subject matter. Our experienced instructor, Sir Yousaf, will walk you through the entire process, ensuring you grasp the core concepts required to excel in this assignment.
In this comprehensive video, we will cover all the essential aspects that you need to know to successfully complete CS401 Assignment 2. From analyzing the requirements to implementing effective algorithms, we leave no stone unturned. Sir Yousaf's expert guidance will help you comprehend complex topics with ease.
We will explore the critical components of the assignment, focusing on topics such as data structures, algorithms, and problem-solving techniques. By following Sir Yousaf's step-by-step instructions, you will learn how to approach each problem efficiently and effectively, guaranteeing accurate and optimal solutions.
Moreover, we will delve into advanced strategies for debugging, testing, and optimizing your code. Sir Yousaf will share valuable tips and tricks that can significantly enhance the quality of your solutions. These insights will not only boost your performance in this assignment but also equip you with valuable skills applicable to future programming endeavors.
Additionally, we understand the importance of proper documentation and commenting. Sir Yousaf will guide you on how to document your code effectively, ensuring clarity and readability. This attention to detail will not only help you present your assignment flawlessly but also foster good programming practices.
Furthermore, we will discuss time management techniques to ensure you complete your assignment within the given deadline. Sir Yousaf will share practical strategies to help you effectively manage your time, allowing you to allocate sufficient resources to different sections of the assignment.
To maximize your success, we will provide sample solutions and explanations for common errors and misconceptions. Sir Yousaf will address frequently asked questions and clarify any doubts you may have, making this video an invaluable resource for achieving the desired 100% correctness in CS401 Assignment 2.
Remember to subscribe to our channel and hit the notification bell to stay updated with future videos that cover various programming topics, assignments, and examinations. Don't miss out on this opportunity to enhance your programming skills and boost your academic performance.
Thank you for watching!
CS401 Assignment 2 solution, CS401 Assignment 2 solution 2023, CS401 Assignment 2 solution fall 2023, CS401 Assignment 2 solution 2022, CS401 Assignment 2 solution spring 2023, CS401 Assignment 2, CS401 Assignment 2 solution2023, CS401 Assignment 2 spring2023, CS401 Assignment 2 no 1
CS401 Assignment 2, programming tutorial, 100% correct solutions, Sir Yousaf, data structures, algorithms
SOLUTION:
[org 0x0100]
jmp start
section .data
name db 'Name: Sir Yousaf', 0
vuid db 'VUID: 210223358', 0
vuid_asc db 'VUID sorted: 012223358', 0
vuid_desc db 'VUID sorted: 853322210', 0
current_values db vuid - vuid ; initially display vuid
start:
; clear the screen
mov ax, 0x0003 ; video mode 80x25, color text
int 0x10
; print name on the 1st row of the screen
mov ah, 0x0e ; BIOS teletype function
mov al, 0 ; clear the screen
int 0x10
mov si, name
call print_string_color
; print VUID on the 2nd row of the screen
mov ah, 0x0e ; BIOS teletype function
mov al, 0x0d ; carriage return
int 0x10
mov al, 0x0a ; line feed
int 0x10
mov si, current_values
call print_string_color
; keyboard interrupt service routine
mov ax, 0
mov es, ax ; point es to IVT base
cli ; disable interrupts
mov word [es:9*4], kbisr ; store offset at n*4
mov [es:9*4+2], cs ; store segment at n*4+2
sti ; enable interrupts
; wait for Esc key to be pressed
l1:
mov ah, 0 ; service 0 – get keystroke
int 0x16 ; call BIOS keyboard service
cmp al, 27 ; is the Esc key pressed
jne l1 ; if no, check for next key
mov ax, 0x4c00 ; terminate program
int 0x21
kbisr:
push ax
push es
mov ax, 0xb800
mov es, ax ; point es to video memory
in al, 0x60 ; read a char from keyboard port
cmp al, 0x2a ; is the key left shift
jne .nextcmp ; no, try next comparison
mov al, 0x0a ; line feed
; clear the screen
; clear the screen
mov ax, 0x0003 ; video mode 80x25, color text
int 0x10
mov al, 0x0a ; line feed
mov si, name
call print_string_color
mov ah, 0x0e ; BIOS teletype function
mov al, 0x0d ; carriage return
int 0x10
mov al, 0x0a ; line feed
int 0x10
mov si, vuid
call print_string_color
mov ah, 0x0e ; BIOS teletype function
mov al, 0x0d ; carriage return
int 0x10
mov al, 0x0a ; line feed
int 0x10
mov si, vuid_asc
call print_string_color
jmp .nomatch ; leave interrupt routine
.nextcmp:
cmp al, 0x36 ; is the key right shift
jne .nomatch ; no, leave interrupt routine
; clear the screen
mov ax, 0x0003 ; video mode 80x25, color text
int 0x10
mov al, 0x0a ; line feed
mov si, name
call print_string_color
mov ah, 0x0e ; BIOS teletype function
mov al, 0x0d ; carriage return
int 0x10
mov al, 0x0a ; line feed
int 0x10
mov si, vuid
call print_string_color
mov ah, 0x0e ; BIOS teletype function
mov al, 0x0d ; carriage return
int 0x10
mov al, 0x0a ; line feed
int 0x10
mov si, vuid_desc
call print_string_color
.nomatch:
mov al, 0x20
out 0x20, al ; send EOI to PIC
pop es
pop ax
iret
.done:
ret
.show_desc_values:
mov si, vuid_desc ; switch to desc values
jmp .done
.show_asc_values:
mov si, vuid_asc ; switch to asc values
jmp .done
print_string_color:
lodsb ; load a byte from si into al
cmp al, 0 ; check for null terminator
je .done
mov ah, 0x0e ; BIOS teletype function
mov bh, 0 ; display page
int 0x10 ; call BIOS video service
jmp print_string_color
.done:
ret
