Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; X - Pointer to lookup table - to allow ABX
- ; Y - Pointer to Coco video byte
- ; U - Pointer Chip8 video byte
- ; A/B/D - Transformations/Offsets
- ; Use CMPX / BNE for loop for now until I unroll
- LDY #GraphicsPage+16 ; offset so I can write behind
- PSHS U
- LDU #Video_RAM
- DrawLine
- LDX #TransformTable ; Draw Byte/Word One
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Two
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Three
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Four
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Five
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Six
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Seven
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LDX #TransformTable ; Draw Byte/Word Eight
- CLRA
- LDB ,U+
- ABX
- ABX
- LDD ,X
- STD -16,Y
- STD ,Y++
- LEAY 16,Y ; Skip line already drawn
- CMPU #Video_RAM+256
- LBNE DrawLine
- PULS U
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement