CS401 Assignment No 2 Solution Fall 2023 – VU Assignment Solution – VU Fall Assignment Solution
The CS401 Assignment No 2 Solution Fall 2023Â of Virtual University (VU) course assignment and I will share with you today the solution I came up with. Always come back to StudySolution for the most recent updates regarding the answers to your assignments.
Please visit our GDB section to traverse the Fall GDB Solution page if you find any GDB solutions for the Spring of 2024 and bring them to our attention. You are welcome to share your thoughts with us in the space provided below, and we will get back to you as quickly as possible.
Study Solution is an educational platform that offers students a free VU assignment solution to further their education. The solutions to the VU assignments provided by this site are the product of the professional and extensive experience of educators who are acknowledged authorities in their respective areas.
CS401 Assignment No 2 Solution Fall 2023Â This assignment solution for Virtual University has been crafted with careful consideration given to the particular needs of the students as well as the course material. Study Solution provides a solution for completing assignments associated with Virtual University that is dependable, accurate, and up-to-date.
The VU assignment solution file will be available at no cost during the Fall 2023 semester. You can use all VU assignment solution files for your VU assignments. We can guarantee that if you use our VU assignment help, you will improve the grades that you receive on your assignments.
The Virtual University can be a complex learning environment, particularly for starting students. That is why we provide the Virtual University Assignment Solution to assist you. Don’t hesitate to contact us using the comment box to let us know about any Virtual University Assignment Solution requirements you may have.
CS401 Assignment No 2 Solution Fall 2023 The assignments play a significant role in the educational experience at VU, which is consistently ranked among the nation’s best universities. There are a lot of students who struggle to finish their VU assignments on time; this is where Study Solution comes in.
Assignment No. 2
Solution Fall 2023
CS401
Please Note this Before Submit Your Assignment:
- Begin brainstorming ideas for your unique solution.
- Quickly correct any errors you notice before submitting your assignment.
- Please verify that your job meets all criteria before submitting it.
- Notify us in the comments section if the Solution file contains any errors, and we will promptly make the necessary corrections.
- Please ensure that your work meets all requirements before submitting it.
- Do not submit the same file for the solution; incorporate the suggestions below to create a higher-quality solution file.
- If there are any issues with the solution file or other errors, please inform us so we can address them immediately.
- Make necessary corrections and double-check that your file functions correctly before submitting it.
- Before submitting any of your tasks, ensure they have been thoroughly reviewed.
Students Can Get CS401 Assignment No 2 Solution Fall 2023 just By Visiting below.
Solution
Take an idea and make it yourself please make some changes before submitting.
Code:
org 0x0l00
jmp start
Name: db ‘M.junaid Qazi’; store name in memory
CGPA: db ‘3 .47’ ; store CGPA in memory
VUID: db ‘BC190409022’; store VUID in memory
CourseCode: db ‘CS401′; Placeholder for course code
SUM: db ’27’ ; store VUID in memory
; Â subroutine to clear the screen
clrscr: push es push ax push ex push di
mov ax, 0xb800
mov es, ax ; Â point es to video base
xor di, Â di ; Â point di to top left column
mov ax, Â 0x0720 ; Â space char in normal attribute mov ex, 2000 ; Â number of screen locations
cld ;Â Â auto increment mode
rep stosw ;Â Â clear the whole screen
pop di pop ex pop ax pop es ret
; Â subroutine to print a string printstr:
push bp
mov bp, sp push es push ax push ex push si push di
mov ax, Â 0xb800
mov es, ax ; Â point es to video base
mov al, Â 80 ; Â load al with columns per row mul byte [bp+ 10]; Â multiply with y position add ax, Â [bp+ 12] Â ; Â add x position
shl ax, Â 1Â Â ; Â tum into byte offset
mov di, Â ax ; Â point di to required location mov si, Â [bp+6] Â ; Â point si to string
mov ex,  [bp+4]  ;  load length of string  in ex mov ah,  [bp+8]  ;  load attribute in ah
cld ;Â Â auto increment mode
nextchar:
lodsb ; Â load next char in al stosw ; Â print char/attribute pair
loop nextchar ; Â repeat for the whole string
pop di
pop SI
pop ex
pop ax
pop es pop bp ret 10
start:
call clrscr ; Â call clrscr subroutine
; Â Print the name on the screen
mov ax, Â 1Â Â ; Â x position for the name push ax
mov ax, Â 1Â Â ; Â y position for the name
push ax mov ax, 15 push ax
mov ax, Name; push address of the name push ax
push word 13 Â ; Â push length of the name
call printstr  ;  call the printstr subroutine
;Â Print the CGPA on the next line mov ax, 1Â Â ; Â x position for CGPA push ax
mov ax, Â 2 ; Â y position for CGPA
push ax mov ax, Â 15 push ax
mov ax, CGPA ; Â push address of CGPA
push ax
; Â assuming length of CGPA is 7 (including null terminator)
push word 4 ; Â push length of CGPA
call printstr  ;  call the printstr subroutine
<!— Baki Code Khud Likhy –âž”
int 0x20 ; Â terminate program
For More Latest Update Stay With Us.