Skip to content

Commit

Permalink
Version 1.03
Browse files Browse the repository at this point in the history
Version 1.03 did mostly game fixes and cleaned part of the code, removing some useless features and rearranging part of the code for better efficiency.
  • Loading branch information
VitorVilela7 committed Aug 4, 2018
1 parent e36e9b1 commit d0c9e83
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 275 deletions.
2 changes: 1 addition & 1 deletion 8mb.asm
Expand Up @@ -7,7 +7,7 @@ db $04,$05,$06,$07
norom ; pc address mode

org $7FFFFF
db $00 ; expand ROM to 6MB
db $00 ; expand ROM to 8MB

org $407FB8
db "S","T","A","R"
Expand Down
9 changes: 5 additions & 4 deletions boost/LZX.asm
Expand Up @@ -31,8 +31,10 @@ if read1($0FFFEB) == 2
else
!LZ3 = 0

pushpc
ORG $0FFFEB
db $01
pullpc
endif

macro ReadByte()
Expand All @@ -45,12 +47,11 @@ macro ReadByte()
+
endmacro

pushpc
org $00B8E3
!c JSL CodeStart ;was JML before
JSL CodeStart ;was JML before
RTS

reset bytes
freecode
pullpc

CodeStart:
PHB
Expand Down
8 changes: 4 additions & 4 deletions boost/map16.asm
@@ -1,19 +1,19 @@
@include

pushpc
ORG $0586DD
BEQ +
ORG $0586E9
+

ORG $0586DF
!c JML KeepLoading
JML KeepLoading

ORG $0585FF
!c JSL CallSA1
JSL CallSA1
RTS
pullpc
freecode

CallSA1:
SEP #$20
LDA.B #SA1Code
Expand Down
6 changes: 3 additions & 3 deletions boost/oam.asm
@@ -1,5 +1,7 @@
@include

pushpc

ORG $008494
LDA.B #CompressOAM
STA $3180
Expand All @@ -12,9 +14,7 @@ ORG $008494
NOP #34 ; freespace
warnpc $0084C8

!c (read1($008494+1)<<0)|(read1($008494+2+3+1)<<8)|(read1($008494+2+3+2+3+1)<<16)

freecode cleaned
pullpc

CompressOAM:
PHB
Expand Down
56 changes: 46 additions & 10 deletions boost/sprites.asm
Expand Up @@ -2,12 +2,18 @@

!Wiggers = $418800 ; Don't touch!

pushpc

ORG $03D7AB
JML ReznorFix
ReznorFix_Return:
RTS

ORG $00BFC5
!c JML CheckForSA1
JML CheckForSA1

ORG $01808C
!c JML SpriteMain
JML SpriteMain
NOP #2

ORG $01CC28
Expand Down Expand Up @@ -91,16 +97,16 @@ ORG $01C804
LDA #$05
STA $2253
STZ $2254
!c JSL Continue_01C804
JSL Continue_01C804
warnpc $01C84D
ORG $03DEDF
!c JML Mode7Stuff
JML Mode7Stuff
NOP #2
Mode7Continue:

ORG $03DD7D
!c JML MoreMode7
JML MoreMode7
Mode7MoreContinue:

ORG $03DDE3
Expand Down Expand Up @@ -129,7 +135,7 @@ ORG $03995E
LDA #$38
LDY $07
BNE +
!c JML Continue_03995E
JML Continue_03995E
NOP
Return_03995E:
LDA $2307
Expand Down Expand Up @@ -276,10 +282,40 @@ macro Switch()
STA $0185
endmacro
;=======================================;
; Freespace code ;
;=======================================;
freecode
pullpc

ReznorFix:
%Switch()
LDA #$D0
STA $2209
SEP #$10
- LDA $018A
BEQ -
STZ $018A
JML .Return
ReznorFix_SNES:
REP #$31
LDA.L $7F837B
TAX
LDA.W #$C05A
ADC $00
STA.L $7F837D,X
ORA.W #$2000
STA.L $7F8383,X
LDA.W #$0240
STA.L $7F837F,X
STA.L $7F8385,X
LDA.W #$38FC
STA.L $7F8381,X
STA.L $7F8387,X
LDA.W #$00FF
STA.L $7F8389,X
TXA
CLC
ADC.W #$000C
STA.L $7F837B
SEP #$30
RTL

CheckForSA1: ; CPU: ???
PHA ; Preserve A
Expand Down
2 changes: 1 addition & 1 deletion lunar fix.txt
@@ -1,3 +1,3 @@
This version does not include Lunar Fix anymore, since if I update Lunar Fix, I would need to
update the SA-1 Pack too. So that's why Lunar Fix is not included anymore. You can get Lunar
Fix at SA-1 Compatible Tools or here: https://dl.dropbox.com/u/16203903/A/SA1/Tools/LunarFix101.zip
Fix at SA-1 Compatible Tools.
4 changes: 2 additions & 2 deletions readme.txt
Expand Up @@ -4,7 +4,7 @@
\___ \ / /\ \______| | | ___/ _` |/ __| |/ /
____) / ____ \ | | | | | (_| | (__| <
|_____/_/ \_\ |_| |_| \__,_|\___|_|\_\
by Vitor Vilela Version 1.02
by Vitor Vilela Version 1.03

The SA-1 Pack consist of a couple of patches that enable
SA-1 and prepare your SMW ROM to use the SA-1 CPU in the
Expand Down Expand Up @@ -362,7 +362,7 @@ CustomCode: ;*put code here*;
RTL

However freecode/freedata will not work with Asar when you are
accessing the 4MB+ area, atleast until Alcaro adds "sa1rom full"
accessing the 4MB+ area, atleast until Alcaro adds "bigsa1rom"
to Asar (if he hasn't implemented it already).

-----------------------------------------------------
Expand Down

0 comments on commit d0c9e83

Please sign in to comment.