;Symbolic Integer Constants;
;main.asm;
;Albert Eti;
;Computer Organization;
;COSC 2325 2801;
;10 / 9 / 21;
model small
.386
.stack 100h
.data
sunday = 0
monday = 1
tuesday = 2
wednesday = 3
thursday = 4
friday = 5
saturday = 6
.data
daysArray DWORD 0,1,3,4,5,6
weekdays DB sunday,monday,tuesday,wednesday,thursday,friday,saturday
dialogue BYTE " symbolic constants for all seven days of the week ",0dh,0ah,0
.code
main:
mov ax,@data
mov ds,ax
mov ah,02h
mov dl,weekdays
add dl,30h
int 21h
mov ah,4ch
int 21h
mov ah,4ch
int 21h
call Clrscr
mov edx,offset dialogue
call WriteString
end main
To embed this project on your website, copy the following code and paste it into your website's HTML: