Skip to content

Commit

Permalink
taus,twoplayer: Use separate RAM areas
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Apr 26, 2020
1 parent 5eabd4b commit 948abbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions taus.ips.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
MEMORY {
RAM: start = $0760, size = $00A0, file = ""; # GAMEBSS init is limited to 255 bytes
RAM: start = $0780, size = $0080, file = ""; # GAMEBSS init is limited to 255 bytes
IPSHDR: start = $0000, size = $0005;
SKIP_LEGALHDR:start = $0000, size = $0005;
SKIP_LEGAL: start = $8236, size = $0002;
JMP_INIT_GAME_STATEHDR:start = $0000, size = $0005;
JMP_INIT_GAME_STATE: start = $86E2, size = $0003;
JMP_INIT_GAME_STATE: start = $86E5, size = $0004;
JMP_RENDER_STATSHDR:start = $0000, size = $0005;
JMP_RENDER_STATS: start = $9645, size = $0004;
STATS_NUMBERHDR:start = $0000, size = $0005;
Expand Down
6 changes: 4 additions & 2 deletions taus.s
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ chartDrawn:

initGameState_mod:
.import __GAMEBSS_SIZE__, __GAMEBSS_RUN__
jsr memset_page
lda #$00
ldx #<__GAMEBSS_SIZE__
@clearByte:
Expand Down Expand Up @@ -132,6 +131,8 @@ initGameState_mod:
bne @initTestEffs
.endif
.endif
ldx #$0F
lda #$00
rts

statsPerBlock:
Expand Down Expand Up @@ -587,8 +588,9 @@ multiplyBy100:

.segment "JMP_INIT_GAME_STATE"

; at beginning of initGameState, replaces "jsr memset_page"
; at beginning of initGameState, replaces "ldx #$0F; lda #$00"
jsr initGameState_mod
nop

.segment "JMP_POST_GAME_STATSHDR"
ips_hunkhdr "JMP_POST_GAME_STATS"
Expand Down
2 changes: 1 addition & 1 deletion twoplayer.nes.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MEMORY {
ZP: start = $0000, size = $0100, type = rw, file = "";
#OAM: start = $0200, size = $0100, type = rw, file = "";
RAM: start = $0100, size = $1F00, type = rw, file = "";
RAM: start = $0100, size = $0680, type = rw, file = ""; # Leaving $80 bytes for taus
HDR: start = $0000, size = $0010, type = ro, fill = yes, fillval = $00;
PRG: start = $8000, size = $8000, type = ro, fill = yes, fillval = $00;
CHR: start = $0000, size = $4000, type = ro, fill = yes, fillval = $00;
Expand Down

0 comments on commit 948abbd

Please sign in to comment.