processor 6502 include vcs.h include macro.h NO_ILLEGAL_OPCODES = 1 seg.u variables org $0080 FrameCount ds 1 PFPosition ds 1 ScrollDirection ds 1 ; 0- none, 1- right, 2- left ColumnBuffer ds 80 pData ds 2 seg.u read_ram_page_0 org $f000 rPFColors ds 80 rColumn0 ds 80 rColumn1 ds 80 org $f100 rColumn2 ds 80 rColumn3 ds 80 rColumnScroll ds 80 org $f200 rP0Colors ds 80 rP0Graphics ds 80 rP1Colors ds 80 org $f300 rP1Graphics ds 80 rP1MovesAndSizes ds 80 seg.u write_ram_page_0 org $f400 wPFColors ds 80 wColumn0 ds 80 wColumn1 ds 80 org $f500 wColumn2 ds 80 wColumn3 ds 80 wColumnScroll ds 80 org $f600 wP0Colors ds 80 wP0Graphics ds 80 wP1Colors ds 80 org $f700 wP1Graphics ds 80 wP1MovesAndSizes ds 80 seg code org $0000 rorg $F000 StageHBLU dc.b >Stage0Col0,>Stage0Col1,>Stage0Col2,>Stage0Col3,>Stage0Col4,>Stage0Col5,>Stage0Col6,>Stage0Col7,>Stage0Col8,>Stage0Col9 StageLBLU dc.b