*****This is an Assembly program NOT a Java/C++ programming***** ****The following is the original code we did in class,
Posted: Thu May 05, 2022 1:59 pm
*****This is an Assembly program NOT a Java/C++
programming*****
****The following 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
programming*****
****The following 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