MAC283 Class work NO. 6 The last Assembly program we did in class displayed the following: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

MAC283 Class work NO. 6 The last Assembly program we did in class displayed the following: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]

Post by answerhappygod »

Mac283 Class Work No 6 The Last Assembly Program We Did In Class Displayed The Following Abcdefghijklmnopqrstuvwxyz 1
Mac283 Class Work No 6 The Last Assembly Program We Did In Class Displayed The Following Abcdefghijklmnopqrstuvwxyz 1 (125.29 KiB) Viewed 42 times
****This is the original code we did in class, please
modify this as needed for the expected outcome********
; THIS IS MY FIRST PROGRAM ; = comment
.model small ; --> small memory allocation
.386 ; --> for use of 32 bits
.stack 100h ; 100H = 256(10)
.data ; to declare variables
.code ; the code for the program
main proc
mov dl, 40H ;move 41H to the DL register
lb1: ;Location in the program
inc dl ; dl = dl + 1
mov ah, 6 ; AH = 6 in order to display the value of AH
int 21h ; calling the library in the firmware
cmp dl, 7ah ; compare the value of dl to 7ah (lC z)
JNZ LB1
; these 2 commands to end the program and return the control
back to DOS
mov ax, 4c00h
int 21h ; library call
main endp
end main
MAC283 Class work NO. 6 The last Assembly program we did in class displayed the following: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz You can see that it includes a few characters that are not letters. Accordingly, edit the existing and create a new program that Displays the following ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply