SHWOO 25 Junior Poster in Training

Why isn't the mReadkey macro outputting the string "Please enter...." ?

TITLE MASM Template						(main.asm)

; Program: Chapter 10 Problem 1-5
; Author: Jon Wayman
; Created Date: July 17th,2008
; Revision date:

INCLUDE Irvine32.inc
INCLUDE Macros.inc

;-------------------------------
mReadkey MACRO
;
; This macro asks user to press any key
; and it will store the ASCII and scan codes.

	mWriteLn "Please enter a key to output its ASCII & keyboard code: "

	mov	eax,10
	call Delay
	call Readkey

	ENDM
;-------------------------------

.data
ascii BYTE ?
scan BYTE ?
.code

mReadkey

main PROC


	exit
main ENDP

	; (insert addiitonal procedures here)
END main

mWriteLn & mWrite implementation

;------------------------------------------------------
mWrite MACRO text:REQ
;
; Writes a string literal to standard output.
; Receives: a string enclosed in single or double 
;   quotes (null terminator not required).
;------------------------------------------------------
LOCAL string
	.data		;; local data
	string BYTE text,0	;; define the string
	.code
	push	edx
	mov	edx,OFFSET string
	call	WriteString
	pop	edx
ENDM

;------------------------------------------------------
mWriteLn MACRO text:REQ
;
; Writes a string literal to standard output, followined by Crlf
; Receives: a string enclosed in single or double 
;   quotes (null terminator not required).
; DEPRECATED in the Fifth edition.
;------------------------------------------------------
	mWrite text
	call	Crlf
ENDM