> SCHOOL > ICS 312 > INPUT/OUTPUT EXAMPLE


I'm having some trouble working with my HTML template, so I won't use it here. Anyway, I made a gif file to annotate the code and the image came out too wide to fit in the body of the other layout. Anyhow, this page is about Assembly language not web design!

This little practice program is meant to explain somewhat how to do some input and output in Assembly:



Here's a sample of the output:



FUNCTIONS:

The command MOV AH,_ loads a certain instruction to get ready to be executed by INT 21H.
The functions we know so far are:

Function 1 - Get a character from the keyboard
Function 2 - Print a single character to the screen
Function 9 - Print a string to the screen until a terminator ($) is reached


Go Back to 312 Page

modified: 01/29/00