MAC283 Class work NO. 6 The last Assembly program we did in class displayed the following: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]
Posted: Thu May 05, 2022 1:22 pm
****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
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