face allan's uh homepage worm
schoollinks what is the matrix > SCHOOL > ICS 312 > PROGRAM STRUCTURE



So far our programs are made up of four main parts:

         
         .model small
         .stack 100h
         .data
            ; define data here
.code
; executable instructions

As far as we're concerned, always use the same .model small and .stack 100h at the beginning of the program.

Also, .data doesn't have to come before .code.

Be sure to end your program with:

         MOV AX,4C00H
         INT 21H

Otherwise, you'll totally crash your session.


Go Back

Last modified: 01/31/00

 

 


main | school | links