DEV Community

Discussion on: Why do we use Hello World? - the history behind it

Collapse
 
pauldubois777 profile image
Paul DuBois

What about "Hello World" in 6809 assembler for the Radio Shack Color Computer!

* FILENAME: HELLO.ASM
* CLEARS SCREEN, PRINTS "HELLO WORLD" AND
* WAITS FOR KEYPRESS

    ORG $2A00

START
* CREATE NEW STACK
    STS OLDS
    LDS #24+STK

* CLEAR THE SCREEN
    JSR $A928

* PRINT THE MESSAGE     
    LDX #MESG
LOOP    LDA ,X+
        BEQ KEY

* CALL CHROUT
    JSR [$A002]
    BRA LOOP

* WAIT FOR KEYPRESS        
KEY JSR [$A000]
    BEQ KEY

* RESTORE STACK
    LDS OLDS

* RETURN TO BASIC
DONE    RTS

* DATA
MESG    FCC /HELLO WORLD/
    FCB 13
    FCB 0
OLDS    RMB 2
STK RMW 12
    END START
Enter fullscreen mode Exit fullscreen mode

Courtesy of TRS-80 Coco 6809 ASM Hello World

Collapse
 
acoh3n profile image
Arik

Now, that's code.