                include BIOS_IF.asm

                ORG APP_START

                PutString HeaderMsg

                LDA #$FF
                STA VIA_DDRA

loop1           GetChar
                BEQ loop1
                STA VIA_PRA
                PutChar
                CMP #13
                BNE loop1
                
loop2           GetString Buffer, BUFFER_SIZE
                PutString Buffer
                CMP Buffer
                BNE loop2

                RTS

HeaderMsg       DB  "Sample App", 13, 10, 0
BUFFER_SIZE     EQU 100
Buffer          DS  BUFFER_SIZE
