TITLE HelloAssemblerRevisited (instructor dev)						(main.asm)

; Description: demos string display, ptr movement, & char capitalization
; 
; Revision date: Feb 5, 09

INCLUDE Irvine32.inc

.data

msg	BYTE "hello assembler",10,0		; string, /n, /0

.code
main PROC

	mov	edx, OFFSET msg		; move the string's offset into EDX
	call WriteString			; use Irvine code to print the string
	
	add	edx, 6				; add 6 to EDX -> move the pointer forward
	call WriteString			; use Irvine code to print the string
	
	mov	al, BYTE PTR[msg]		; get the first character
	and	al, 0dfh				; uppercase it
	mov	msg, al				; move it back
	
	mov	al, BYTE PTR[msg+6]		; get the 6th character
	and	al, 0dfh				; uppercase it
	mov	msg+6, al				; move it back

	mov	edx, OFFSET msg		; move the string's offset into EDX
	call WriteString			; use Irvine code to print the string
	
	call	DumpRegs				; let's check out the registers
	
	exit						; use Irvine code to quit
main ENDP
END main
