1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-27 09:31:18 +00:00

Added BYTE0/1/2/3 fragments. #221

This commit is contained in:
jespergravgaard 2021-04-05 02:19:29 +02:00
parent 9443fd5c46
commit 510935eee7
24 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,2 @@
ldy #0
lda ({z1}),y

View File

@ -0,0 +1 @@
lda {c1}

View File

@ -0,0 +1,2 @@
ldy #0
lda ({z1}),y

View File

@ -0,0 +1,2 @@
ldy #0
lda ({z1}),y

View File

@ -0,0 +1 @@
lda {c1},x

View File

@ -0,0 +1 @@
lda {c1},y

View File

@ -0,0 +1 @@
lda {c1},x

View File

@ -0,0 +1 @@
lda {c1},y

View File

@ -0,0 +1 @@
lda ({z1}),y

View File

@ -0,0 +1,2 @@
ldy #{c1}
lda ({z1}),y

View File

@ -0,0 +1 @@
lda {c1}+1

View File

@ -0,0 +1,2 @@
ldy #1
lda ({z1}),y

View File

@ -0,0 +1 @@
lda {c1}+1

View File

@ -0,0 +1,2 @@
ldy #1
lda ({z1}),y

View File

@ -0,0 +1,2 @@
ldy #1
lda ({z1}),y

View File

@ -0,0 +1 @@
lda {m1}+1

View File

@ -0,0 +1 @@
lda {c1}+1,x

View File

@ -0,0 +1 @@
lda {c1}+1,y

View File

@ -0,0 +1 @@
lda {c1}+1,x

View File

@ -0,0 +1 @@
lda {c1}+1,y

View File

@ -0,0 +1,2 @@
ldy #{c1}+1
lda ({z1}),y

View File

@ -0,0 +1,2 @@
iny
lda ({z1}),y

View File

@ -0,0 +1,2 @@
ldy #{c1}+1
lda ({z1}),y

View File

@ -1,7 +1,7 @@
// Test hardware line drawing
// Based on https://github.com/MEGA65/mega65-tools/blob/master/src/tests/test_290.c
#pragma target(mega65_remote)
#pragma target(mega65)
#include <mega65.h>
#include <mega65-dma.h>
#include <6502.h>
@ -90,8 +90,8 @@ unsigned int m65_div16u_frac(unsigned int dividend, unsigned int divisor) {
// Graphics mode is 1 byte per pixel. Addressing is based on columns of 8px * 200px arranged to have linear addressing.
// addr = (x/8) * 64 * 25 + (y*8) + (x&7)
char line_dma_command[] = {
DMA_OPTION_LINE_XSTEP_LO, (25*64 - 8) & 0xff, // Line X step bytes 64x25
DMA_OPTION_LINE_XSTEP_HI, (25*64 - 8) >> 8, // Line X step bytes 64x25
DMA_OPTION_LINE_XSTEP_LO, LOBYTE(25*64 - 8), // Line X step bytes 64x25
DMA_OPTION_LINE_XSTEP_HI, HIBYTE(25*64 - 8), // Line X step bytes 64x25
DMA_OPTION_LINE_SLOPE_LO, 0, // Line Slope
DMA_OPTION_LINE_SLOPE_HI, 0, // Line Slope
DMA_OPTION_LINE_SLOPE_INIT_LO, LOBYTE(32768), // Line slope init