#-------------------------------------------------------------------------------
# Thomas C. Bressoud
# 29 December 2005
# ppc1.s
#
# Description:  Simple first program that does nothing
#-------------------------------------------------------------------------------

# Next directive defines additions to the data segment

.data
.align 2		; Start on 4 byte boundary
A:	.long	23	; Allocate a 4 byte data word
B:	.long	17  ; Allocate another 4 byte data word
C:	.long	0	; Allocate a 4 byte ddata word for the result

# Next directive defines additions to the text (code) segment

.text
.align 2		; Start on a 4 byte boundary
.globl	_main	; Make the _main symbol visible outside this module
_main:
	mflr	r0	; Put the return address from main into r0

# Do something in here

	mtlr	r0
	blr

