Skip to content

Instantly share code, notes, and snippets.

@kuninet
Last active April 13, 2020 12:00
Show Gist options
  • Save kuninet/d0a2755c0e84097555dbfb727ac1d9fa to your computer and use it in GitHub Desktop.
Save kuninet/d0a2755c0e84097555dbfb727ac1d9fa to your computer and use it in GitHub Desktop.
6502CPU HELLO.asm Universal Monitor 6502版用
;
; HELLO PRINT
; Universal Minitor for 6502
;
CPU 6502
TARGET: EQU "6502"
org $0200
;
;;; Functions
low function x,(x & 255)
high function x,(x >> 8)
;
STROUT EQU $FF98
PT0 EQU $28
;
LDA #low(HELLO_MSG)
STA PT0
LDA #high(HELLO_MSG)
STA PT0+1
JSR STROUT
;
BRK ; PROGRAM END
;
HELLO_MSG FCB "HELLO! Universal Monitor for 6502",$0D,$0A,$00
END
:10020000A90C8528A90285292098FF0048454C4C57
:100210004F2120556E6976657273616C204D6F6E4B
:1002200069746F7220666F7220363530320D0A00A5
:00000001FF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment