您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
377B

  1. ; chrout-hello.asm
  2. ; Generic 6510 assembly. Load at $C000 and run with SYS 49152.
  3. ; Uses KERNAL CHROUT at $FFD2. Clobbers A/Y.
  4. * = $c000
  5. start: ldy #$00
  6. loop: lda message,y
  7. beq done
  8. jsr $ffd2 ; KERNAL CHROUT
  9. iny
  10. bne loop
  11. done: rts
  12. message:
  13. .byte 147 ; clear screen PETSCII
  14. .byte "HELLO FROM $C000",13,0

Powered by TurnKey Linux.