Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gamemenu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ controls_save_to_file:
LDA.w !IH_INPUT_RUN : STA $700000,X : INX #2
LDA.w !IH_INPUT_ITEM_CANCEL : STA $700000,X : INX #2
LDA.w !IH_INPUT_ITEM_SELECT : STA $700000,X : INX #2
LDA.w !IH_INPUT_ANGLE_UP : STA $700000,X : INX #2
LDA.w !IH_INPUT_ANGLE_DOWN : STA $700000,X
LDA.w !IH_INPUT_ANGLE_DOWN : STA $700000,X : INX #2
LDA.w !IH_INPUT_ANGLE_UP : STA $700000,X
%sfxconfirm()
RTL

Expand Down
9 changes: 5 additions & 4 deletions src/infohud.asm
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,6 @@ ih_before_room_transition:
; Update HUD
JSL ih_update_hud_before_transition

; Restore temp variables
PLA : STA $14
PLA : STA $12

; Calculate door alignment time
LDX !DOOR_ID : AND #$00FF
%a8() ; Draw3 returns a16
Expand Down Expand Up @@ -506,6 +502,11 @@ ih_before_room_transition:

.done
PLB

; Restore temp variables
PLA : STA $14
PLA : STA $12

CLC ; overwritten code
RTL

Expand Down
30 changes: 4 additions & 26 deletions src/infohudmodes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4908,8 +4908,6 @@ status_twocries_nosb:

status_door_hspeed:
{
LDA $12 : PHA

; subspeed + submomentum into low byte of Hspeed
LDA !SAMUS_X_SUBRUNSPEED : CLC : ADC !SAMUS_X_SUBMOMENTUM
AND #$FF00 : XBA : STA !ram_momentum_sum
Expand Down Expand Up @@ -4952,14 +4950,11 @@ status_door_hspeed:
LDA.l HexGFXTable,X : STA !HUD_TILEMAP+$8E

.done
PLA : STA $12
RTS
}

status_door_vspeed:
{
LDA $12 : PHA

; draw two digits of speed in decimal form
LDA !SAMUS_Y_SPEED : STA $4204
%a8()
Expand Down Expand Up @@ -4987,14 +4982,11 @@ status_door_vspeed:
LDA !SAMUS_Y_SUBSPEED : XBA : AND #$00F0 : LSR #3 : TAY
LDA.l HexGFXTable,X : STA !HUD_TILEMAP+$8C

PLA : STA $12
RTS
}

status_door_chargetimer:
{
LDA $12 : PHA

LDA !SAMUS_CHARGE_TIMER : CMP #$003C : BPL .charged
LDA #$003C : SEC : SBC !SAMUS_CHARGE_TIMER
LDX #$0088 : JMP Draw4
Expand All @@ -5004,40 +4996,26 @@ status_door_chargetimer:
LDA !IH_SHINESPARK : STA !HUD_TILEMAP+$8C
LDA !SAMUS_CHARGE_TIMER : SEC : SBC #$003C
ASL : TAX : LDA NumberGFXTable,X : STA !HUD_TILEMAP+$8E

PLA : STA $12
RTS
}

status_door_shinetimer:
{
LDA $12 : PHA
LDA !ram_armed_shine_duration : LDX #$0088 : JSR Draw4
PLA : STA $12
RTS
LDA !ram_armed_shine_duration : LDX #$0088 : JMP Draw4
}

status_door_dashcounter:
{
LDA $12 : PHA
LDA !SAMUS_DASH_COUNTER : LDX #$0088 : JSR Draw4
PLA : STA $12
RTS
LDA !SAMUS_DASH_COUNTER : LDX #$0088 : JMP Draw4
}

status_door_xpos:
{
LDA $12 : PHA
LDA !SAMUS_X : LDX #$0088 : JSR Draw4Hex
PLA : STA $12
RTS
LDA !SAMUS_X : LDX #$0088 : JMP Draw4Hex
}

status_door_ypos:
{
LDA $12 : PHA
LDA !SAMUS_Y : LDX #$0088 : JSR Draw4Hex
PLA : STA $12
RTS
LDA !SAMUS_Y : LDX #$0088 : JMP Draw4Hex
}

2 changes: 1 addition & 1 deletion src/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lorom
!VERSION_MAJOR = 2
!VERSION_MINOR = 6
!VERSION_BUILD = 7
!VERSION_REV = 0
!VERSION_REV = 1

table ../resources/normal.tbl
print ""
Expand Down
2 changes: 1 addition & 1 deletion src/menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3685,6 +3685,7 @@ cm_spc_next_block:

STA $2141

STY !cm_spc_data
%a16()
LDA.w #cm_spc_next_block_wait : STA !ram_quickboot_spc_state

Expand All @@ -3709,7 +3710,6 @@ cm_spc_next_block_wait:
%a16()
LDA !cm_spc_len : BEQ .eof
LDA.w #cm_spc_transfer : STA !ram_quickboot_spc_state
STY !cm_spc_data
RTS

.eof
Expand Down
2 changes: 1 addition & 1 deletion src/tilegraphics.asm
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ preset_transfer_to_vram:
LDA !SAMUS_Y : ASL #3 : XBA : AND #$003C
; The bottom of west ocean is the same as east ocean
CMP #$0028 : BPL .east_ocean
CLC : ADC.w #preset_vram_landing_site_params : TAX
CLC : ADC.w #preset_vram_west_ocean_params : TAX
BRA .transfer

.east_ocean
Expand Down