mirror of https://github.com/nmlgc/ReC98.git
[Reverse-engineering] [th02/th04/th05] Single-plane sprite display calls
Require understanding a hardware detail, so let's do them all at once. Part of P0035, funded by zorg.
This commit is contained in:
parent
6f1f36722f
commit
68c9a3c79c
|
@ -60,6 +60,12 @@ twobyte_t struc
|
||||||
hi db ?
|
hi db ?
|
||||||
twobyte_t ends
|
twobyte_t ends
|
||||||
|
|
||||||
|
; master.lib extensions
|
||||||
|
; ---------------------
|
||||||
|
; super_roll_put_1plane() plane_put constants
|
||||||
|
PLANE_PUT = 0FF00h or GC_RMW
|
||||||
|
; ---------------------
|
||||||
|
|
||||||
RES_X = 640
|
RES_X = 640
|
||||||
RES_Y = 400
|
RES_Y = 400
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,12 @@ graph_accesspage macro page:rest
|
||||||
outb 0A6h, page
|
outb 0A6h, page
|
||||||
endm
|
endm
|
||||||
|
|
||||||
|
; スーパーインポーズ処理 --------------------------------------------------*
|
||||||
|
; 出典: super.lib(c)Kazumi supersfx.lib(c)iR
|
||||||
|
; $Id: super.h 0.36 93/02/19 20:23:11 Kazumi Rel $
|
||||||
|
|
||||||
|
PLANE_ERASE = 00c0h
|
||||||
|
|
||||||
; グラフィック画面への多角形描画処理 --------------------------------------
|
; グラフィック画面への多角形描画処理 --------------------------------------
|
||||||
; 出典: gc_poly.h 0.16
|
; 出典: gc_poly.h 0.16
|
||||||
|
|
||||||
|
|
|
@ -12220,11 +12220,7 @@ loc_111AF:
|
||||||
mov bx, di
|
mov bx, di
|
||||||
shl bx, 2
|
shl bx, 2
|
||||||
les bx, [bx+52ECh]
|
les bx, [bx+52ECh]
|
||||||
push word ptr es:[bx]
|
call super_roll_put_1plane pascal, word ptr es:[bx], si, word_22D4C, large PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push word_22D4C
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
pop di
|
pop di
|
||||||
pop si
|
pop si
|
||||||
pop bp
|
pop bp
|
||||||
|
@ -12866,7 +12862,7 @@ loc_11712:
|
||||||
mov bx, si
|
mov bx, si
|
||||||
add bx, bx
|
add bx, bx
|
||||||
push word ptr [bx+52DCh]
|
push word ptr [bx+52DCh]
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov byte ptr [si+2BF5h], 0
|
mov byte ptr [si+2BF5h], 0
|
||||||
jmp short loc_1175C
|
jmp short loc_1175C
|
||||||
|
@ -17376,11 +17372,7 @@ loc_13A1D:
|
||||||
loc_13A4B:
|
loc_13A4B:
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
mov bx, word_2065C
|
mov bx, word_2065C
|
||||||
push word ptr [bx]
|
call super_roll_put_1plane pascal, word ptr [bx], si, (148 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push 940000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
jmp short loc_13AB8
|
jmp short loc_13AB8
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -17869,11 +17861,7 @@ var_2 = word ptr -2
|
||||||
cmp word_2065A, 8D4h
|
cmp word_2065A, 8D4h
|
||||||
jg short loc_13F18
|
jg short loc_13F18
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
push word_24E7C
|
call super_roll_put_1plane pascal, word_24E7C, word_24E7E, word_2064E, large PLANE_PUT or GC_BRGI
|
||||||
push word_24E7E
|
|
||||||
push word_2064E
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
jmp short loc_13F2B
|
jmp short loc_13F2B
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -18354,11 +18342,7 @@ loc_142E1:
|
||||||
jz loc_143D4
|
jz loc_143D4
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
mov bx, word_2065C
|
mov bx, word_2065C
|
||||||
push word ptr [bx]
|
call super_roll_put_1plane pascal, word ptr [bx], si, (136 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push 880000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
inc word_2065A
|
inc word_2065A
|
||||||
jmp loc_143E1
|
jmp loc_143E1
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -18411,11 +18395,7 @@ loc_1435F:
|
||||||
loc_1438D:
|
loc_1438D:
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
mov bx, word_2065C
|
mov bx, word_2065C
|
||||||
push word ptr [bx]
|
call super_roll_put_1plane pascal, word ptr [bx], si, (136 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push 880000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
jmp short loc_143E1
|
jmp short loc_143E1
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -18724,11 +18704,7 @@ loc_14628:
|
||||||
add word_2065A, ax
|
add word_2065A, ax
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
mov bx, word_2065C
|
mov bx, word_2065C
|
||||||
push word ptr [bx]
|
call super_roll_put_1plane pascal, word ptr [bx], si, word_2064E, large PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push word_2064E
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
cmp word_2065A, 960h
|
cmp word_2065A, 960h
|
||||||
jl short loc_14699
|
jl short loc_14699
|
||||||
mov byte_2066A, 1
|
mov byte_2066A, 1
|
||||||
|
@ -19965,11 +19941,7 @@ loc_150D1:
|
||||||
mov bx, di
|
mov bx, di
|
||||||
add bx, bx
|
add bx, bx
|
||||||
add bx, [bp+var_6]
|
add bx, [bp+var_6]
|
||||||
push word ptr [bx]
|
call super_roll_put_1plane pascal, word ptr [bx], [bp+var_4], (147 shl 16) or 0, PLANE_PUT or GC_RGI
|
||||||
push [bp+var_4]
|
|
||||||
push 930000h
|
|
||||||
push 0FFC1h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
|
|
||||||
loc_150EA:
|
loc_150EA:
|
||||||
inc di
|
inc di
|
||||||
|
@ -24599,7 +24571,7 @@ loc_178C8:
|
||||||
mov bx, word_26C46
|
mov bx, word_26C46
|
||||||
add ax, [bx+12h]
|
add ax, [bx+12h]
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
jmp short loc_17964
|
jmp short loc_17964
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -28698,11 +28670,7 @@ loc_19F72:
|
||||||
cmp byte_2066B, 0
|
cmp byte_2066B, 0
|
||||||
jz short loc_19F9E
|
jz short loc_19F9E
|
||||||
call _snd_se_play c, 4
|
call _snd_se_play c, 4
|
||||||
push word_26D76
|
call super_roll_put_1plane pascal, word_26D76, si, word_2064E, large PLANE_PUT or GC_BRGI
|
||||||
push si
|
|
||||||
push word_2064E
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov byte_2066B, 0
|
mov byte_2066B, 0
|
||||||
jmp short loc_19FAC
|
jmp short loc_19FAC
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -30600,7 +30568,7 @@ loc_1B0E5:
|
||||||
push word ptr es:[bx]
|
push word ptr es:[bx]
|
||||||
lea ax, [si+8Ah]
|
lea ax, [si+8Ah]
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_1B163:
|
loc_1B163:
|
||||||
|
|
|
@ -3054,17 +3054,13 @@ loc_C836:
|
||||||
div bx
|
div bx
|
||||||
add dx, 93h
|
add dx, 93h
|
||||||
push dx
|
push dx
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov ax, _midboss_pos.cur.y
|
mov ax, _midboss_pos.cur.y
|
||||||
add ax, (16 shl 4)
|
add ax, (16 shl 4)
|
||||||
call main_01:scroll_subpixel_y_to_vram_seg1 pascal, ax
|
call main_01:scroll_subpixel_y_to_vram_seg1 pascal, ax
|
||||||
mov si, ax
|
mov si, ax
|
||||||
push di
|
call super_roll_put_1plane pascal, di, ax, (146 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push ax
|
|
||||||
push 920000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_C881
|
jmp short loc_C881
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -3162,11 +3158,7 @@ loc_C91E:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_C931:
|
loc_C931:
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
|
|
||||||
loc_C946:
|
loc_C946:
|
||||||
|
@ -3614,11 +3606,7 @@ loc_CCAA:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_CCBD:
|
loc_CCBD:
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
|
|
||||||
loc_CCD2:
|
loc_CCD2:
|
||||||
|
@ -3814,11 +3802,7 @@ loc_CE5B:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_CE6E:
|
loc_CE6E:
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_CE8F
|
jmp short loc_CE8F
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -7105,11 +7089,7 @@ loc_E8D8:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_E906:
|
loc_E906:
|
||||||
push si
|
call super_put_1plane pascal, si, di, (128 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push 800000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
jmp loc_EA5B
|
jmp loc_EA5B
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -7147,7 +7127,7 @@ loc_E961:
|
||||||
push si
|
push si
|
||||||
push di
|
push di
|
||||||
push [bp+var_2]
|
push [bp+var_2]
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
lea ax, [si+30h]
|
lea ax, [si+30h]
|
||||||
push ax
|
push ax
|
||||||
|
@ -7155,7 +7135,7 @@ loc_E961:
|
||||||
mov ax, [bp+var_2]
|
mov ax, [bp+var_2]
|
||||||
inc ax
|
inc ax
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
jmp loc_EA5B
|
jmp loc_EA5B
|
||||||
|
@ -7650,11 +7630,7 @@ loc_ED01:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_ED4B:
|
loc_ED4B:
|
||||||
push [bp+var_2]
|
call super_roll_put_1plane pascal, [bp+var_2], [bp+var_4], word ptr [si+6], large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_4]
|
|
||||||
push word ptr [si+6]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov word ptr [si+16h], 0
|
mov word ptr [si+16h], 0
|
||||||
|
|
||||||
loc_ED64:
|
loc_ED64:
|
||||||
|
@ -7706,7 +7682,7 @@ loc_EDA6:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
|
|
||||||
|
@ -11019,7 +10995,7 @@ loc_107B7:
|
||||||
mov al, [bp+var_5]
|
mov al, [bp+var_5]
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov byte ptr [si+24h], 0
|
mov byte ptr [si+24h], 0
|
||||||
|
|
||||||
|
@ -11457,11 +11433,7 @@ loc_10C45:
|
||||||
jz short loc_10C65
|
jz short loc_10C65
|
||||||
cmp frame_mod4, 0
|
cmp frame_mod4, 0
|
||||||
jnz short loc_10C65
|
jnz short loc_10C65
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
jmp short loc_10C6F
|
jmp short loc_10C6F
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -12284,7 +12256,7 @@ loc_1160F:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_11622:
|
loc_11622:
|
||||||
|
@ -12489,11 +12461,7 @@ loc_1189B:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_118AE:
|
loc_118AE:
|
||||||
push si
|
call super_put_1plane pascal, si, di, [bp+var_2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_118BE:
|
loc_118BE:
|
||||||
call main_01:grcg_setmode_rmw_1
|
call main_01:grcg_setmode_rmw_1
|
||||||
|
@ -12683,11 +12651,7 @@ loc_11A12:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_11A57:
|
loc_11A57:
|
||||||
push si
|
call super_put_1plane pascal, si, di, [bp+var_2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
jmp short loc_11A90
|
jmp short loc_11A90
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -12851,7 +12815,7 @@ loc_11B8E:
|
||||||
and ax, 3
|
and ax, 3
|
||||||
add ax, 0BAh
|
add ax, 0BAh
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
jmp short loc_11BCD
|
jmp short loc_11BCD
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -12986,7 +12950,7 @@ loc_11CB1:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFCDh
|
pushd PLANE_PUT or GC_R
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
lea ax, [si+30h]
|
lea ax, [si+30h]
|
||||||
push ax
|
push ax
|
||||||
|
@ -12995,7 +12959,7 @@ loc_11CB1:
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
inc ax
|
inc ax
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFCDh
|
pushd PLANE_PUT or GC_R
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_11CDB:
|
loc_11CDB:
|
||||||
|
@ -13051,7 +13015,7 @@ loc_11D42:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFCDh
|
pushd PLANE_PUT or GC_R
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
lea ax, [si+30h]
|
lea ax, [si+30h]
|
||||||
push ax
|
push ax
|
||||||
|
@ -13060,7 +13024,7 @@ loc_11D42:
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
inc ax
|
inc ax
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFCDh
|
pushd PLANE_PUT or GC_R
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_11D6C:
|
loc_11D6C:
|
||||||
|
@ -13174,7 +13138,7 @@ loc_11E48:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
jmp short loc_11E71
|
jmp short loc_11E71
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -15358,7 +15322,7 @@ var_2 = word ptr -2
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC6h
|
pushd PLANE_PUT or GC_BI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_12ECF:
|
loc_12ECF:
|
||||||
|
@ -15396,11 +15360,7 @@ loc_12EFE:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_12F14:
|
loc_12F14:
|
||||||
push si
|
call super_put_1plane pascal, si, di, [bp+var_2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
|
|
||||||
loc_12F29:
|
loc_12F29:
|
||||||
|
@ -15546,7 +15506,7 @@ loc_1303C:
|
||||||
mov al, _boss_sprite
|
mov al, _boss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
lea ax, [di+30h]
|
lea ax, [di+30h]
|
||||||
push ax
|
push ax
|
||||||
|
@ -15555,7 +15515,7 @@ loc_1303C:
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
inc ax
|
inc ax
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_put_1plane
|
call super_put_1plane
|
||||||
|
|
||||||
loc_13066:
|
loc_13066:
|
||||||
|
|
112
th05_main.asm
112
th05_main.asm
|
@ -2848,8 +2848,8 @@ loc_C683:
|
||||||
cwd
|
cwd
|
||||||
idiv bx
|
idiv bx
|
||||||
push ax
|
push ax
|
||||||
push 0B30000h
|
push (179 shl 16) or 0
|
||||||
push 0C9h
|
push PLANE_ERASE or GC_RG
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
sub di, 14h
|
sub di, 14h
|
||||||
mov ax, [di]
|
mov ax, [di]
|
||||||
|
@ -2861,8 +2861,8 @@ loc_C683:
|
||||||
cwd
|
cwd
|
||||||
idiv bx
|
idiv bx
|
||||||
push ax
|
push ax
|
||||||
push 0B30000h
|
push (179 shl 16) or 0
|
||||||
push 0C9h
|
push PLANE_ERASE or GC_RG
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
sub di, 14h
|
sub di, 14h
|
||||||
mov ax, [di]
|
mov ax, [di]
|
||||||
|
@ -2874,8 +2874,8 @@ loc_C683:
|
||||||
cwd
|
cwd
|
||||||
idiv bx
|
idiv bx
|
||||||
push ax
|
push ax
|
||||||
push 0B30000h
|
push (179 shl 16) or 0
|
||||||
push 0C9h
|
push PLANE_ERASE or GC_RG
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov ax, [si]
|
mov ax, [si]
|
||||||
mov bx, 10h
|
mov bx, 10h
|
||||||
|
@ -2886,8 +2886,8 @@ loc_C683:
|
||||||
cwd
|
cwd
|
||||||
idiv bx
|
idiv bx
|
||||||
push ax
|
push ax
|
||||||
push 0B30000h
|
push (179 shl 16) or 0
|
||||||
push 0C8h
|
push PLANE_ERASE or GC_BRG
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
add di, 82h
|
add di, 82h
|
||||||
add si, 8Ch
|
add si, 8Ch
|
||||||
|
@ -3559,11 +3559,7 @@ loc_CCB3:
|
||||||
jl short loc_CCFE
|
jl short loc_CCFE
|
||||||
cmp word_242A4, 150h
|
cmp word_242A4, 150h
|
||||||
jg short loc_CCFE
|
jg short loc_CCFE
|
||||||
push word_242A2
|
call super_roll_put_1plane pascal, word_242A2, word_242A4, (179 shl 16) or 0, PLANE_PUT or GC_BRGI
|
||||||
push word_242A4
|
|
||||||
push 0B30000h
|
|
||||||
push 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
|
|
||||||
loc_CCFE:
|
loc_CCFE:
|
||||||
inc si
|
inc si
|
||||||
|
@ -7294,7 +7290,7 @@ loc_EC5B:
|
||||||
mov al, [bp+var_5]
|
mov al, [bp+var_5]
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov byte ptr [si+21h], 0
|
mov byte ptr [si+21h], 0
|
||||||
|
|
||||||
|
@ -10024,11 +10020,7 @@ loc_108C2:
|
||||||
mov si, ax
|
mov si, ax
|
||||||
cmp _midboss_damage_this_frame, 0
|
cmp _midboss_damage_this_frame, 0
|
||||||
jz short loc_108B6
|
jz short loc_108B6
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_10900
|
jmp short loc_10900
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -10127,11 +10119,7 @@ loc_10976:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10989:
|
loc_10989:
|
||||||
push di
|
call super_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10999:
|
loc_10999:
|
||||||
call explosions_small_update_and_render
|
call explosions_small_update_and_render
|
||||||
|
@ -10197,11 +10185,7 @@ loc_109F0:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10A05:
|
loc_10A05:
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_10A26
|
jmp short loc_10A26
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -10274,11 +10258,7 @@ loc_10A59:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10A84:
|
loc_10A84:
|
||||||
push si
|
call super_put_1plane pascal, si, di, word ptr [bp-2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push word ptr [bp-2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10A94:
|
loc_10A94:
|
||||||
call explosions_small_update_and_render
|
call explosions_small_update_and_render
|
||||||
|
@ -10340,11 +10320,7 @@ loc_10AE3:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10AF8:
|
loc_10AF8:
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_10B19
|
jmp short loc_10B19
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -10441,11 +10417,7 @@ loc_10BA1:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10BB5:
|
loc_10BB5:
|
||||||
push [bp+var_4]
|
call super_put_1plane pascal, [bp+var_4], di, [bp+var_6], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_6]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10BC7:
|
loc_10BC7:
|
||||||
mov ax, [si+4]
|
mov ax, [si+4]
|
||||||
|
@ -10603,11 +10575,7 @@ loc_10CF4:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10D09:
|
loc_10D09:
|
||||||
push di
|
call super_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10D19:
|
loc_10D19:
|
||||||
call sub_10B1D
|
call sub_10B1D
|
||||||
|
@ -10663,11 +10631,7 @@ loc_10D49:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10D5B:
|
loc_10D5B:
|
||||||
push di
|
call super_put_1plane pascal, di, [bp+arg_4], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+arg_4]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10D6B:
|
loc_10D6B:
|
||||||
pop di
|
pop di
|
||||||
|
@ -10829,11 +10793,7 @@ var_2 = word ptr -2
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10E8D:
|
loc_10E8D:
|
||||||
push si
|
call super_roll_put_1plane pascal, si, di, [bp+var_2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_10EAE
|
jmp short loc_10EAE
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
@ -10969,11 +10929,7 @@ loc_10F63:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_10F76:
|
loc_10F76:
|
||||||
push di
|
call super_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_10F86:
|
loc_10F86:
|
||||||
call explosions_small_update_and_render
|
call explosions_small_update_and_render
|
||||||
|
@ -11100,11 +11056,7 @@ loc_11029:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_11054:
|
loc_11054:
|
||||||
push si
|
call super_put_1plane pascal, si, di, [bp+var_2], large PLANE_PUT or GC_BRGI
|
||||||
push di
|
|
||||||
push [bp+var_2]
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
|
|
||||||
loc_11064:
|
loc_11064:
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
|
@ -11233,11 +11185,7 @@ loc_11114:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_11134:
|
loc_11134:
|
||||||
push si
|
call super_put_1plane pascal, si, [bp+var_2], di, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push di
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
jmp short loc_11175
|
jmp short loc_11175
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -11859,7 +11807,7 @@ loc_1166D:
|
||||||
mov al, _midboss_sprite
|
mov al, _midboss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_11691
|
jmp short loc_11691
|
||||||
|
@ -12094,11 +12042,7 @@ loc_11812:
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loc_11825:
|
loc_11825:
|
||||||
push di
|
call super_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_put_1plane
|
|
||||||
mov _boss_damage_this_frame, 0
|
mov _boss_damage_this_frame, 0
|
||||||
|
|
||||||
loc_1183A:
|
loc_1183A:
|
||||||
|
@ -12166,7 +12110,7 @@ loc_118A9:
|
||||||
mov al, _midboss_sprite
|
mov al, _midboss_sprite
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
push ax
|
push ax
|
||||||
pushd 0FFC0h
|
pushd PLANE_PUT or GC_BRGI
|
||||||
call super_roll_put_1plane
|
call super_roll_put_1plane
|
||||||
mov _midboss_damage_this_frame, 0
|
mov _midboss_damage_this_frame, 0
|
||||||
jmp short loc_118CD
|
jmp short loc_118CD
|
||||||
|
@ -13110,11 +13054,7 @@ loc_122AB:
|
||||||
jz short loc_122CB
|
jz short loc_122CB
|
||||||
cmp frame_mod4, 0
|
cmp frame_mod4, 0
|
||||||
jnz short loc_122CB
|
jnz short loc_122CB
|
||||||
push di
|
call super_roll_put_1plane pascal, di, [bp+var_2], si, large PLANE_PUT or GC_BRGI
|
||||||
push [bp+var_2]
|
|
||||||
push si
|
|
||||||
pushd 0FFC0h
|
|
||||||
call super_roll_put_1plane
|
|
||||||
jmp short loc_122D5
|
jmp short loc_122D5
|
||||||
; ---------------------------------------------------------------------------
|
; ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue