COP-3402 Information


MASM 6.11

We will be using the Microsoft Assembler, MASM 6.11, in this course. It has been installed in the PC411 and in the AUL (ECS 241).

For those of you with computers at home, the text book for the course comes with a copy of MASM 6.11. The installation requires at least 4MB of RAM. Some students have had difficulty installing it, so read the documentation and follow the instructions closely. Configuring MASM 6.11 from your home computer.

Back to Index


Header to include in all programs

You are to include the following comment at the start of each program that you hand in, and then SIGN the statement.

; Name: your name
; File Name: the name of the file that contains your source code
;
; Program Description: Several sentences that give a complete description
; of your program.
;
; Instructor: Tim Downey        Class: COP3402  Section: your section
;
; I attest that I have done this assignment without help from other people,
; except possibly Tim Downey.
;
; Signed: sign your name here
;

Back to Index


Necessary comments to include in all programs

Back to Index


Some decuctions from programs

Back to Index


What to hand in

For each assignment you are to hand in the following

Back to Index


Steps to create a project

You should now be at a screen that shows you all the files in your directory. You will now select the particular files you want in your project.

You now have a project for the indicated files.

Example of two files that could be combined together in a project

Back to Index


Reading and Printing Decimal Numbers

I have created four routines that you can use that read and print decimal numbers.

Reading a decimal
To read a decimal, call the routine READ_SIGNED or READ_UNSIGNED. After the call, the AX register will contain the decimal number stored in hexadecimal.

call READ_SIGNED
;now AX has the number
or
call READ_UNSIGNED
;now AX has the number

Printing a number in decimal format
To print a number in decimal, place the number in AX, then call the routine PRINT_SIGNED or PRINT_UNSIGNED. The routine will take the number that is stored in AX, and print it in decimal format. Warning: this routine will destroy the contents of AX.

mov AX, TOTAL
call PRINT_SIGNED


or

mov AX, TOTAL
call PRINT_UNSIGNED

To get this to work, just include the file ASM_IO.INC just after the .code statement and before the start of the program

	.code
include	asm_io.inc
main 	proc
	mov	ax,@data
	...

You will need to download the file ASM_IO.INC and place it in the same directory as your source code. Here is a link to the code for ASM_IO.INC. Follow this link in your browser, then click on File, Save As to download it. Save it in the same directory as your ASM file. If your browser tries to download it as an HTML file, then cancel the operation and do the following

Back to Index


Types of Interrupts

10h Video
13h Disk
14h Serial Port
15h I/O Subsytem (eg, Joystick)
16h Keyboard
17h Parallel Port Printer
1Ah Real-time clock
21h DOS
33h Mouse

Back to Index


You are visitor number to visit this page since 10/13/00.