Hello world Apple II
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 PRINT "Hello World!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
write ('Hello World!'); | |
readln; | |
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Extracted from https://github.com/mogorman/appleii-helloworld | |
.import __STARTUP_LOAD__, __BSS_LOAD__ ; Linker generated | |
.segment "EXEHDR" | |
.addr __STARTUP_LOAD__ ; Start address | |
.word __BSS_LOAD__ - __STARTUP_LOAD__ ; Size | |
.segment "RODATA" | |
MSG: .ASCIIZ "Hello world!" | |
.segment "STARTUP" | |
LDA #$8D ; next line | |
JSR $FDED | |
LDX #0 | |
LDA MSG,X ; load initial char | |
@LP: ORA #$80 | |
JSR $FDED ; cout | |
INX | |
LDA MSG,X | |
BNE @LP | |
LDA #$8D ; next line | |
JSR $FDED | |
JMP $03D0 ; warm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment