Sha256: 03a433bfeaf89ac688f82e5bcada5d7b2e3b891fad57ec884c492032adbaf035
Contents?: true
Size: 591 Bytes
Versions: 7
Compression:
Stored size: 591 Bytes
Contents
; goodbyeworld.s for C= 8-bit machines, ca65 assembler format. ; String printing limited to strings of 256 characters or less. a_cr = $0d ; Carriage return. bsout = $ffd2 ; KERNAL ROM, output a character to current device. .code ldx #0 ; Starting index 0 in X register. printnext: lda text,x ; Get character from string. beq done ; If we read a 0 we're done. jsr bsout ; Output character. inx ; Increment index to next character. bne printnext ; Repeat if index doesn't overflow to 0. done: rts ; Return from subroutine. .rodata text: .byte "Hello world!", a_cr, 0
Version data entries
7 entries across 7 versions & 1 rubygems