mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
smol optimization by moving out a portion of a proc to a separate subroutine
This commit is contained in:
@@ -340,6 +340,28 @@ DisplayAngle
|
||||
rts
|
||||
.endp
|
||||
;-------------------------------------------------
|
||||
.proc _calc_inverse_display
|
||||
; optymalization station. not a real function
|
||||
; or is it?
|
||||
@weapon_index = TextNumberOff
|
||||
@inverse_counter = temp+1
|
||||
|
||||
mwa #0 @inverse_counter
|
||||
tay ; ldy #0
|
||||
@
|
||||
inw LineAddress4x4
|
||||
lda (LineAddress4x4),y
|
||||
spl:inc @inverse_counter
|
||||
lda @weapon_index
|
||||
beq zeroth_talk ; special treatment of talk #0
|
||||
cmp @inverse_counter
|
||||
bne @-
|
||||
|
||||
inw LineAddress4x4 ; we were pointing at the char with inverse, must go 1 further
|
||||
zeroth_talk
|
||||
rts
|
||||
.endp
|
||||
;-------------------------------------------------
|
||||
|
||||
|
||||
.endif
|
||||
Reference in New Issue
Block a user