Skip to content
Permalink
Browse files
It's HiROM now!!!
  • Loading branch information
nicklausw committed Mar 19, 2018
1 parent ab816cb commit 752f2436a041e2651fa769bd50451d1336cf8432
Showing with 1,366 additions and 401 deletions.
  1. +4 −6 README.md
  2. +22 −21 fighter.asm
  3. +1,097 −0 fighter.cpu.sym
  4. BIN fighter.sfc
  5. +22 −0 fighter.smp.sym
  6. +108 −296 fighter.sym
  7. +1 −1 inc/data.inc
  8. +3 −3 inc/header.inc
  9. +3 −3 inc/init.inc
  10. +8 −36 inc/memory.inc
  11. +35 −15 inc/oam.inc
  12. +5 −0 inc/player/new.inc
  13. +35 −0 inc/player/player.inc
  14. +12 −9 inc/ppu.inc
  15. +9 −9 inc/rle.inc
  16. +2 −2 tools/snes-check.py
@@ -1,8 +1,8 @@
Fighter!
========
It's currently a useless demo, but soon I
hope for this to become a playable SNES
fighting game.
It's called Fighter, but I don't really know what I
want it to end up being. Right now this is my
"figure out the SNES" repo.

[Uses my fork of bass-untech.](https://github.com/nicklausw/bass-untech)

@@ -17,6 +17,4 @@ fighter.sym, that's designed to work with
[BenjaminSchulte's fork of bsnes-plus.](https://github.com/BenjaminSchulte/bsnes-plus)
The SNES.BLABLABLA definitions are added by
the emulator itself, and it also orders the
labels numerically. It does all this after
sym2bsnes.lua plays with bass-untech's output.
It's like those labels went through an entire factory.
labels numerically.
@@ -6,12 +6,21 @@ include "inc/ppu.inc"
include "inc/oam.inc"
include "inc/rle.inc"
include "inc/init.inc"
include "inc/player/player.inc"

wRAM()
player.new(sektor)

code()
function Main {
ppu.copyPalette(palettes.main)
rle.copy(tilesets.sektor)

databank($00)

lda #$01; sta >oam.avail
jsl ^oam.findSlot

a16()
lda #>OBSIZE_32_64; sta >OBSEL // 32x32 sprites

@@ -21,13 +30,13 @@ function Main {

// $50 X and Y
lda #>$50
sta >oam.oamTable+0
sta >oam.oamTable+1
sta >oam.table+0
sta >oam.table+1

// starting from sprite $30
lda #>$30
sta >oam.oamTable+2
stz >oam.oamTable+3
sta >oam.table+2
stz >oam.table+3

a8()

@@ -49,42 +58,34 @@ function Main {
and #<KEY_RIGHT >> 8
beq +

lda >oam.oamTable+0
clc; adc #$03
sta >oam.oamTable+0
player.right(3)

+;lda >JOY1CUR+1
and #<KEY_LEFT >> 8
beq +

lda >oam.oamTable+0
sec; sbc #$03
sta >oam.oamTable+0
player.left(3)

+;lda >JOY1CUR+1
and #<KEY_UP >> 8
beq +

lda >oam.oamTable+1
sec; sbc #$03
sta >oam.oamTable+1
player.up(3)

+;lda >JOY1CUR+1
and #<KEY_DOWN >> 8
beq +

lda >oam.oamTable+1
clc; adc #$03
sta >oam.oamTable+1
player.down(3)

+;

xy16()
ldx <oam.reserved
//jsr >oam.clear
jsr >oam.packHi
jsr >ppu.sync
jsr >oam.copy
jsl ^oam.packHi
jsl ^ppu.sync
jsl ^oam.copy

bra forever
}
@@ -96,4 +97,4 @@ function rtiPointer {

end()

include "inc/header.inc"
include "inc/header.inc"
Loading

0 comments on commit 752f243

Please sign in to comment.