6502-opcodes/data/print-three-upper-math.asm

35 lines
826 B
NASM
Raw Normal View History

2022-12-07 18:53:05 +00:00
; Colors that each screen pixel can be set to
2022-12-06 21:53:40 +00:00
define COLOR_Black $00
define COLOR_White $01
define COLOR_Red $02
define COLOR_Cyan $03
define COLOR_Purple $04
define COLOR_Green $05
define COLOR_Blue $06
define COLOR_Yellow $07
define COLOR_Orange $08
define COLOR_Brown $09
define COLOR_LightRed $0A
define COLOR_DarkGrey $0B
define COLOR_Grey $0C
define COLOR_LightGreen $0D
define COLOR_LightBlue $0E
define COLOR_LightGrey $0F
2022-12-06 20:22:37 +00:00
2022-12-07 18:53:05 +00:00
; The screen as a collection of pixels
2022-12-06 21:53:40 +00:00
define SCREEN $200
2022-12-06 20:22:37 +00:00
; Screen(0) = White
2022-12-06 22:20:30 +00:00
LDA #COLOR_White ; a = White
STA SCREEN+0 ; Screen(0) = a
2022-12-06 20:22:37 +00:00
; Screen(1) = Green
2022-12-06 22:20:30 +00:00
LDA #COLOR_Green ; a = Green
STA SCREEN+1 ; Screen(1) = a
2022-12-06 20:22:37 +00:00
; Screen(2) = Orange
2022-12-06 22:20:30 +00:00
LDA #COLOR_Orange ; a = Orange
STA SCREEN+2 ; Screen(2) = a