#include "c:\miniide\hcs12.inc" org $1000 buf ds.b 40 org $2000 lds #$2000 ldx #msg1x jsr puts2SCI0 jsr newline ldx #prompt jsr puts2SCI0 ldx #buf jsr getsSCI0 jsr newline ldx #msg2x jsr puts2SCI0 jsr newline ldx #buf jsr puts2SCI0 jsr newline swi #include "c:\miniide\stdio0.asm" prompt fcc "Please enter a string: " db 0 msg1x fcc "This is a test." db 0 msg2x fcc "This is the string that you entered:" db 0 end