CSC 222 Lab 5
Fall 2000
Topic: Creating a program that will read in a base 10
number and print it out in binary or octal
1) Write and assemble a program that will read in a
base 10 number, then print it out in binary or
octal.
Example:
13O
15
Sample
.model small
.stack 100H
.data
.code
Sample proc
mov ax, @data
mov ds, ax
;; program goes here
mov al, 0 ; exit to DOS
mov ah, 4ch
int 21h
Sample endp
end Sample