This commit is contained in:
Irmen de Jong 2020-08-31 23:00:53 +02:00
parent 809917f13b
commit fe4e0e9835
4 changed files with 2 additions and 27 deletions

View File

@ -4,9 +4,6 @@
main { main {
const uword width = 255
const uword height = 200
; vertices ; vertices
word[] xcoor = [ -100, -100, -100, -100, 100, 100, 100, 100 ] word[] xcoor = [ -100, -100, -100, -100, 100, 100, 100, 100 ]
word[] ycoor = [ -100, -100, 100, 100, -100, -100, 100, 100 ] word[] ycoor = [ -100, -100, 100, 100, -100, -100, 100, 100 ]

View File

@ -1,4 +1,4 @@
; CommanderX16 text clock example! ; CommanderX16 simple graphics example!
; make sure to compile with the cx16 compiler target. ; make sure to compile with the cx16 compiler target.
%zeropage basicsafe %zeropage basicsafe

View File

@ -5,7 +5,7 @@
main { main {
const uword width = 256 const uword width = 256
const uword height = 200 const uword height = 200
const ubyte max_iter = 16 ; 32 looks pretty nice const ubyte max_iter = 16 ; 32 actually looks pretty nice but takes longer
sub start() { sub start() {
initialize() initialize()

View File

@ -8,28 +8,6 @@ main {
sub start() { sub start() {
; %asm {{
; lda #$80
; jsr cx16.screen_set_mode
; }}
; cx16.r0=0
; cx16.GRAPH_init()
; %asm {{
; lda #4
; ldy #0
; ldx #1
; jsr cx16.GRAPH_set_colors
; }}
; cx16.GRAPH_clear()
; cx16.r0=10
; cx16.r1=10
; cx16.r2=100
; cx16.r3=150
; cx16.GRAPH_draw_line()
;
; repeat {
; }
cx16.r0 = mkword(8, 2020 - 1900) cx16.r0 = mkword(8, 2020 - 1900)
cx16.r1 = mkword(19, 27) cx16.r1 = mkword(19, 27)
cx16.r2 = mkword(0, 16) cx16.r2 = mkword(0, 16)