12 lines
707 B
NASM
12 lines
707 B
NASM
; PIXEL-MASK.ASM -- follow one byte from a register into ordinary RAM.
|
|
; This scratch byte belongs to the program. You can examine it without
|
|
; changing the live display. Later you will look for a byte on a video page.
|
|
org $3f00
|
|
start leax sample,pcr ; X points to our one-byte sample.
|
|
lda #$81 ; Two end bits are set: %10000001.
|
|
shift lsra ; Shift right. Which bit goes into carry?
|
|
store sta ,x ; Set a breakpoint here, before the write.
|
|
done rts ; Return to the caller with the byte stored.
|
|
sample fcb $00 ; Assembling and running reloads this zero.
|
|
end start
|