2023-12-27 16:56:10 +01:00
|
|
|
.include "system/system.h65"
|
2023-12-31 01:59:06 +01:00
|
|
|
.include "system/lcd.h65"
|
2023-12-27 16:56:10 +01:00
|
|
|
|
|
|
|
.segment "TEST"
|
2023-12-31 01:59:06 +01:00
|
|
|
.macro MaskedWrite2 addr,value,mask
|
|
|
|
lda #value
|
|
|
|
eor addr
|
|
|
|
and #mask
|
|
|
|
eor addr
|
|
|
|
sta addr
|
|
|
|
.endmacro
|
|
|
|
.import __SPI_SIZE__
|
2023-12-27 16:56:10 +01:00
|
|
|
label:
|
2023-12-31 01:59:06 +01:00
|
|
|
; JsrIndirect $2022
|
|
|
|
; .byte 0,1,2,3,4
|
|
|
|
; JsrIndirect {($2022,x)}, label
|
|
|
|
; .byte 5,6,7,8,9
|
|
|
|
; MaskedWrite2 lcd::LCD_IO+IO::DDRA, (lcd::RS | lcd::RW | lcd::E), lcd::RA_MASK
|
|
|
|
; lda #(lcd::RS | lcd::RW | lcd::E) ; RA 5-7 output
|
|
|
|
; sta lcd::LCD_IO+IO::DDRA
|
|
|
|
.word __SPI_SIZE__
|
|
|
|
.byte >__SPI_SIZE__
|
|
|
|
.byte <__SPI_SIZE__
|