Skip to content

Commit

Permalink
update palette example for emulator r37
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Mar 25, 2020
1 parent c61f3ee commit 7463b1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/Makefile.vars
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

ALOEVERA = "../../target/debug/aloevera"
X16_EMU = "../../../x16-emulator/x16emu"
X16_ROM = "../../../x16-rom/rom.bin"
X16_ROM = "../../../x16-rom/build/x16/rom.bin"
X16_EMU_FLAGS = -run -scale 2
#DEBUG = -debug 092B
2 changes: 1 addition & 1 deletion samples/palette/poke_palette.bas
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 REM POKE PALETTE DATA
10 POKE $9F20,0:POKE $9F21,$10:POKE $9F22,$1F
10 POKE $9F20,$00:POKE $9F21,$FA:POKE $9F22,$11
20 FOR I = 0 TO 111
40 READ A:POKE $9F23,A:NEXT I

Expand Down
6 changes: 3 additions & 3 deletions samples/palette/poke_palette.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ VERA_DATA_PORT = $9F23
.code
jmp start
.proc load_palette
lda #$0
lda #$00
sta VERA_ADDR
lda #$10
lda #$FA
sta VERA_ADDR + 1
lda #$1F
lda #$11
sta VERA_ADDR + 2
ldx #0
loop:
Expand Down

0 comments on commit 7463b1f

Please sign in to comment.