08/01/24 21:42:25
URLリンク(ossan.fam.cx)
>>396のやりたいことを、Z80使いの漏れが6502で作ってみたが、
6割方値は読むので考え方は間違っていないのだろうけど、
完全に読めていない。何が悪いんだろう。割り込み関係かな?
.org $6d1f
sei
lda #$14 ; $1000+asc("A")+16の値が入る。
sta $2006
lda #$10 ; Aなので、$1000+65*16=$1410。
sta $2006
ldx #8
ldy #0
label01:
lda $2007
sta data,y
iny
dex
bne label01
rts
data:
.db 0