;;Welcome.asm title Welcome comment ~ ***************** Name: SSN: Section: Date: Assignment: Description: This program displays a welcome message to standard out. ~ ***************** ;constants CR equ 0dh ;CR is carraige return and is value 13 LF equ 0Ah ;LF is line feed and is value 10 .nolist include bios.inc .list .model small .486 .stack 100h .dosseg .data ;begin the data segment message db LF,CR,LF,"Welcome to COSC 2410" len_of_msg equ $ - message ;take the current memory address ;and delete the memory address ;of the variable message .code ;begin the code segment main proc .startup ;start the main procedure @Cls ;clear the screen @SetCsrPos 33, 13 ;set the cursor position mov ah, 040h ;move 040h into the high part of register AX mov bx, 1 ;move 1 into register BX mov cx, len_of_msg ;move the length of the message into register CX mov dx, OFFSET message ;move the address of the variable message into DX int 21h ;make a call to DOS to display the string .exit ;end the main procedure main endp end