Skip to content

Commit

Permalink
Use 16 color palette for BG1
Browse files Browse the repository at this point in the history
  • Loading branch information
vivi168 committed Sep 27, 2022
1 parent bbf5cb6 commit b47038e
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion assets.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

null_byte: .db 00

bg1_tiles: .incbin assets/bg1.tiles
bg2_tiles: .incbin assets/bg2.tiles

bg1_pal: .incbin assets/bg1.pal
Expand Down
Binary file modified assets/bg1.pal
Binary file not shown.
Binary file modified assets/bg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/bg1.tiles
Binary file not shown.
1 change: 0 additions & 1 deletion define.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.define STACK_TOP 1fff

; assets
.define BG1_TILES_SIZE 01a0
.define BG1_SCBR_SIZE_HALF 3000
.define BG1_SCBR_SIZE 6000
.define BG2_TILES_SIZE 02e0
Expand Down
6 changes: 4 additions & 2 deletions superfx/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ GSU_clear_buffer:
nop



; todo -> argument
; x0, y0 -> length
; color
GSU_Plot_line:
;; test plotting

Expand All @@ -51,7 +53,7 @@ GSU_Plot_line:
cmode

; then set COLOR (color, getc)
ibt r0,#07
ibt r0,#0b
color

; then set x, y (r1, r2)
Expand Down
5 changes: 1 addition & 4 deletions vectors.asm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ FastReset:

; ---- DMA Transfers

.call VRAM_DMA_TRANSFER 0000, bg1_tiles, BG1_TILES_SIZE
.call VRAM_DMA_TRANSFER 3000, bg2_tiles, BG2_TILES_SIZE ; VRAM[0x2000] (word step)

; should design a tilemap corresponding to tiles drawn by super FX
Expand Down Expand Up @@ -118,10 +117,8 @@ FastNmi_ROM:
; find way to transfer full buffer during NMI
; split transfer over multiple frame.
; .call VRAM_DMA_TRANSFER 0000, screen_base, 1780
; .call VRAM_DMA_TRANSFER 0000, bg1_tiles, BG1_TILES_SIZE
; .call VRAM_DMA_TRANSFER 2800, bg1_buffer, BG1_BUFFER_SIZE
; jsr @TransferOamBuffer ; should relocate this to RAM as well

; jsr @TransferOamBuffer ; should relocate this to RAM as well
; jsr @ReadJoyPad1 ; should relocate this to RAM as well

inc @vblank_disable
Expand Down

0 comments on commit b47038e

Please sign in to comment.