; HELLO — clear the screen, print a line, wait for a key
        .include "rom.s"

        .org $6000
START:  JSR HOME          ; clear the text screen
        LDX #0
@next:  LDA MSG,X         ; next character
        BEQ WAIT          ; 0 = end of the text
        JSR COUT          ; print it
        INX
        BNE @next
WAIT:   LDA KBD           ; bit 7 = a key is waiting
        BPL WAIT
        STA STROBE        ; take the key
        JMP DOSWARM       ; back to BASIC through DOS

MSG:    .asc "HELLO FROM ASM STUDIO"
        .byte $8D, 0      ; return, end
