mirror of https://github.com/nmlgc/ReC98.git
[Position independence] False positives in master.lib EGC function calls
Mostly used for screen shaking. Part of P0059, funded by [Anonymous] and -Tom-.
This commit is contained in:
parent
3d7211b128
commit
550bba9b3c
|
@ -923,10 +923,10 @@ sub_9AD4 proc near
|
||||||
|
|
||||||
loc_9B1B:
|
loc_9B1B:
|
||||||
push si
|
push si
|
||||||
push 64h ; 'd'
|
push 100
|
||||||
lea ax, [si+13Fh]
|
lea ax, [si+319]
|
||||||
push ax
|
push ax
|
||||||
push 12B0004h
|
push (299 shl 16) or 4
|
||||||
call egc_shift_left
|
call egc_shift_left
|
||||||
call grcg_setcolor pascal, (GC_RMW shl 16) + 0
|
call grcg_setcolor pascal, (GC_RMW shl 16) + 0
|
||||||
lea ax, [si+312]
|
lea ax, [si+312]
|
||||||
|
@ -1089,10 +1089,7 @@ loc_9C91:
|
||||||
|
|
||||||
loc_9CDE:
|
loc_9CDE:
|
||||||
graph_accesspage 0
|
graph_accesspage 0
|
||||||
push 0A00064h
|
call egc_shift_down pascal, (160 shl 16) or 100, (479 shl 16) or 297, 2
|
||||||
push 1DF0129h
|
|
||||||
push 2
|
|
||||||
call egc_shift_down
|
|
||||||
push 3
|
push 3
|
||||||
mov ax, si
|
mov ax, si
|
||||||
add ax, ax
|
add ax, ax
|
||||||
|
|
|
@ -2349,8 +2349,7 @@ var_2 = word ptr -2
|
||||||
graph_accesspage 0
|
graph_accesspage 0
|
||||||
call pi_slot_palette_apply pascal, 0
|
call pi_slot_palette_apply pascal, 0
|
||||||
call pi_slot_put pascal, large 0, 0
|
call pi_slot_put pascal, large 0, 0
|
||||||
push 2
|
call egc_shift_left_all pascal, 2
|
||||||
call egc_shift_left_all
|
|
||||||
mov Palettes+45, 0
|
mov Palettes+45, 0
|
||||||
mov Palettes+46, 0
|
mov Palettes+46, 0
|
||||||
mov Palettes+47, 0
|
mov Palettes+47, 0
|
||||||
|
@ -2396,8 +2395,7 @@ loc_AEE1:
|
||||||
sub al, [bp+@@page]
|
sub al, [bp+@@page]
|
||||||
mov [bp+@@page], al
|
mov [bp+@@page], al
|
||||||
graph_accesspage al
|
graph_accesspage al
|
||||||
push 4
|
call egc_shift_left_all pascal, 4
|
||||||
call egc_shift_left_all
|
|
||||||
sub si, 2
|
sub si, 2
|
||||||
|
|
||||||
loc_AF02:
|
loc_AF02:
|
||||||
|
|
|
@ -3564,8 +3564,8 @@ loc_CD61:
|
||||||
loc_CD68:
|
loc_CD68:
|
||||||
cmp word_255BE, 0
|
cmp word_255BE, 0
|
||||||
jge short loc_CD88
|
jge short loc_CD88
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
mov ax, word_255BE
|
mov ax, word_255BE
|
||||||
neg ax
|
neg ax
|
||||||
push ax
|
push ax
|
||||||
|
@ -3576,8 +3576,8 @@ loc_CD68:
|
||||||
loc_CD88:
|
loc_CD88:
|
||||||
cmp word_255BE, 0
|
cmp word_255BE, 0
|
||||||
jle short loc_CDA9
|
jle short loc_CDA9
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
push word_255BE
|
push word_255BE
|
||||||
call egc_shift_right
|
call egc_shift_right
|
||||||
|
|
||||||
|
@ -3587,8 +3587,8 @@ loc_CDA4:
|
||||||
loc_CDA9:
|
loc_CDA9:
|
||||||
cmp word_255C0, 0
|
cmp word_255C0, 0
|
||||||
jge short loc_CDC9
|
jge short loc_CDC9
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
mov ax, word_255C0
|
mov ax, word_255C0
|
||||||
neg ax
|
neg ax
|
||||||
push ax
|
push ax
|
||||||
|
@ -3599,8 +3599,8 @@ loc_CDA9:
|
||||||
loc_CDC9:
|
loc_CDC9:
|
||||||
cmp word_255C0, 0
|
cmp word_255C0, 0
|
||||||
jle short loc_CDEA
|
jle short loc_CDEA
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
push word_255C0
|
push word_255C0
|
||||||
call egc_shift_down
|
call egc_shift_down
|
||||||
|
|
||||||
|
|
|
@ -9106,14 +9106,14 @@ loc_102B2:
|
||||||
loc_102B9:
|
loc_102B9:
|
||||||
cmp word_2CE02, 0
|
cmp word_2CE02, 0
|
||||||
jge short loc_102F0
|
jge short loc_102F0
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
mov ax, word_2CE02
|
mov ax, word_2CE02
|
||||||
neg ax
|
neg ax
|
||||||
push ax
|
push ax
|
||||||
call egc_shift_left
|
call egc_shift_left
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
mov ax, word_2CE02
|
mov ax, word_2CE02
|
||||||
neg ax
|
neg ax
|
||||||
push ax
|
push ax
|
||||||
|
@ -9124,8 +9124,8 @@ loc_102B9:
|
||||||
loc_102F0:
|
loc_102F0:
|
||||||
cmp word_2CE02, 0
|
cmp word_2CE02, 0
|
||||||
jle short loc_10311
|
jle short loc_10311
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
push word_2CE02
|
push word_2CE02
|
||||||
call egc_shift_right
|
call egc_shift_right
|
||||||
|
|
||||||
|
@ -9137,14 +9137,14 @@ loc_10311:
|
||||||
jge short loc_10346
|
jge short loc_10346
|
||||||
cmp _scroll_line, 0
|
cmp _scroll_line, 0
|
||||||
jnz short loc_1032D
|
jnz short loc_1032D
|
||||||
push 200010h
|
push (PLAYFIELD_X shl 16) or PLAYFIELD_Y
|
||||||
push 19F017Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (PLAYFIELD_BOTTOM - 1)
|
||||||
jmp short loc_10339
|
jmp short loc_10339
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_1032D:
|
loc_1032D:
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
|
|
||||||
loc_10339:
|
loc_10339:
|
||||||
mov ax, word_2CE04
|
mov ax, word_2CE04
|
||||||
|
@ -9159,14 +9159,14 @@ loc_10346:
|
||||||
jle short loc_1037C
|
jle short loc_1037C
|
||||||
cmp _scroll_line, 0
|
cmp _scroll_line, 0
|
||||||
jnz short loc_10362
|
jnz short loc_10362
|
||||||
push 200010h
|
push (PLAYFIELD_X shl 16) or PLAYFIELD_Y
|
||||||
push 19F017Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (PLAYFIELD_BOTTOM - 1)
|
||||||
jmp short loc_1036E
|
jmp short loc_1036E
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10362:
|
loc_10362:
|
||||||
push 200000h
|
push (PLAYFIELD_X shl 16) or 0
|
||||||
push 19F018Fh
|
push ((PLAYFIELD_RIGHT - 1) shl 16) or (RES_Y - 1)
|
||||||
|
|
||||||
loc_1036E:
|
loc_1036E:
|
||||||
push word_2CE04
|
push word_2CE04
|
||||||
|
|
Loading…
Reference in New Issue