;
; hw12-probB.asm - example LC-3 assembly code for ECE199JL Fall 2012 HW#12
;
; "Copyright (c) 2012 by Steven S. Lumetta."
;
; Permission to use, copy, modify, and distribute this software and its
; documentation for any purpose, without fee, and without written agreement is
; hereby granted, provided that the above copyright notice and the following
; two paragraphs appear in all copies of this software.
; 
; IN NO EVENT SHALL THE AUTHOR OR THE UNIVERSITY OF ILLINOIS BE LIABLE TO 
; ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 
; DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, 
; EVEN IF THE AUTHOR AND/OR THE UNIVERSITY OF ILLINOIS HAS BEEN ADVISED 
; OF THE POSSIBILITY OF SUCH DAMAGE.
; 
; THE AUTHOR AND THE UNIVERSITY OF ILLINOIS SPECIFICALLY DISCLAIM ANY 
; WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE 
; PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND NEITHER THE AUTHOR NOR
; THE UNIVERSITY OF ILLINOIS HAS ANY OBLIGATION TO PROVIDE MAINTENANCE, 
; SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
;
; Author:	    Steve Lumetta
; Version:	    1
; Creation Date:    5 November 2012
; Filename:	    hw12-probB.asm
; History:
;	SL	1	5 November 2012
;		First written.
;

;
; This program prints a string to the monitor, then stops the LC-3.
; You should modify the string to include your name, then assemble
; the program and execute it in the simulator to check that it works
; correctly before turning the code in.
;

	.ORIG x3000			; start program at x3000

	LEA	R0,MSG			; point R0 to message to be printed
	PUTS				; print string to monitor
	HALT				; stop the LC-3

MSG	.STRINGZ "Hello, world!\n"	; here is the string to print

	.END

