UMBC CMSC211

Project 0 Due: 11 Sep

Requirements Specfication

Create the source file project0.asm, assembly it, link it, and run it. When it runs correctly, email the source file to the TA. Remember, the reason for doing this is to make sure that you know how to use the assemler!

The Answer

;; Filename:       hello.asm
;; Name:           Ima Student
;; SSAN:           6789
;; Date:           3 Feb 2001
;; Course:         CMSC-211
;; Description:    (Your psuedocode goes here.  Must be detailed)
;; Notes:          (As needed, such has how to compile)
;;
;;
;; FIRST.ASM -- Our first Assembly Language Program.  This program
;;    displays the line 'Hello, my name is Gary' on the CRT.

        .MODEL  SMALL

        .STACK  100H

        .DATA

Message DB      'Hello, my name is Gary', 13, 10, '$'

        .CODE
Hello   PROC
        mov     ax, @data
        mov     ds, ax
        mov     dx, OFFSET Message
        mov     ah, 9h            ;Function code for 'display string'
        int     21h               ;Standard way to call MSDOS
        mov     al, 0             ;Return code of 0
        mov     ah, 4ch           ;Exit back to MSDOS
        int     21h
Hello   ENDP

        END     Hello             ;Tells where to start execution

Program Header Comment Block

Use the following comment block at the beginning of your source code:

;; Filename:       proj1.asm
;; Name:           Ima Student
;; SSAN:           6789  
;; Date:           3 Feb 2001
;; Course:         CMSC-211 
;; Description:    (Your psuedocode goes here.  Must be detailed)
;; Notes:          (As needed, such has how to compile)