[Position independence] False positives: 0xFF / 255 / -1

Another dumb concession to the PI counter, leading to one of the single
biggest PI commits ever…

Part of P0117, funded by [Anonymous].
This commit is contained in:
nmlgc 2020-09-15 09:24:20 +02:00
parent 65c72929af
commit 6212a4c21b
10 changed files with 302 additions and 302 deletions

View File

@ -1007,7 +1007,7 @@ loc_BF6E:
loc_BF75:
cmp si, COLOR_COUNT
jl short loc_BF15
mov byte_3876C, 0FFh
mov byte_3876C, -1
jmp loc_C42E
; ---------------------------------------------------------------------------
@ -1585,7 +1585,7 @@ arg_0 = word ptr 6
push si
cmp [bp+arg_0], 0
jnz short loc_C4AB
cmp word_387DA, 0FFh
cmp word_387DA, 255
jz loc_C5B1
xor si, si
jmp short loc_C49D
@ -1606,12 +1606,12 @@ loc_C47E:
loc_C49D:
cmp si, 8
jl short loc_C47E
mov word_387DA, 0FFh
mov word_387DA, 255
jmp loc_C5B1
; ---------------------------------------------------------------------------
loc_C4AB:
cmp word_387DA, 0FFh
cmp word_387DA, 255
jnz short loc_C4C7
xor si, si
jmp short loc_C4C2
@ -5214,7 +5214,7 @@ loc_11B26:
add bx, dx
cmp al, es:[bx+si]
jle short loc_11B62
mov al, 0FFh
mov al, -1
jmp short loc_11B64
; ---------------------------------------------------------------------------
@ -10583,7 +10583,7 @@ arg_20 = dword ptr 26h
cbw
cmp ax, 1
jnz loc_17F73
push 0FFh
push 255
push 0
push 8
les bx, [bp+arg_16]
@ -10615,7 +10615,7 @@ arg_20 = dword ptr 26h
; ---------------------------------------------------------------------------
loc_17F3C:
push 0FFh
push 255
push 0
push 8
push 7
@ -12240,7 +12240,7 @@ arg_0 = word ptr 6
mov byte_35B42, 0
mov byte_35B43, 0
mov byte_35B44, 0
mov byte_39DB2, 0FFh
mov byte_39DB2, -1
mov byte_35B45, 1
mov byte_35B46, 0
mov byte_34A58, 0
@ -20235,7 +20235,7 @@ arg_0 = word ptr 6
push si
cmp [bp+arg_0], 0
jnz short loc_1EFB1
mov byte_39E25, 0FFh
mov byte_39E25, -1
mov byte_35B7B, 4
call IRand
mov bx, 2
@ -20247,7 +20247,7 @@ arg_0 = word ptr 6
; ---------------------------------------------------------------------------
loc_1EFB1:
cmp byte_39E25, 0FFh
cmp byte_39E25, -1
jnz short loc_1EFE5
push 1
call _graph_accesspage_func
@ -20385,7 +20385,7 @@ loc_1F0F8:
call @CBossEntity@put_8$xqiii stdcall, offset mima_still, ds, large [dword ptr mima_still.BE_cur_left], 0
call _z_palette_set_all_show stdcall, offset palette_39B8C, ds
add sp, 1Ch
mov byte_39E25, 0FFh
mov byte_39E25, -1
mov al, 1
sub al, byte_39E26
mov byte_39E26, al
@ -20628,7 +20628,7 @@ loc_1F322:
add bx, bx
cmp word ptr [bx+5487h], 20h ; ' '
jle short loc_1F380
push 0FFh
push 255
push 0
push 4
mov bx, si
@ -20703,7 +20703,7 @@ loc_1F3DD:
add bx, bx
cmp word ptr [bx+5487h], 20h ; ' '
jle short loc_1F458
push 0FFh
push 255
push 0
push 4
push 7
@ -22829,7 +22829,7 @@ arg_0 = byte ptr 6
loc_2079C:
push ds
mov ax, si
imul ax, 0FFh
imul ax, 255
add ax, 228Eh
push ax
push 250
@ -23076,7 +23076,7 @@ loc_20952:
loc_20957:
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
cbw
test ax, si
@ -23100,7 +23100,7 @@ loc_20972:
loc_2097C:
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
cbw
dec ax
@ -23269,7 +23269,7 @@ loc_20AEB:
loc_20AF0:
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
cbw
test ax, si
@ -23333,7 +23333,7 @@ loc_20B79:
loc_20B8B:
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
cbw
dec ax
@ -23392,7 +23392,7 @@ loc_20BE1:
cmp ax, [bp+var_A]
jnz short loc_20C20
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
add al, 0F3h
les bx, off_39E96
@ -23454,7 +23454,7 @@ loc_20C59:
call sub_207BD
add sp, 8
mov bx, [bp+arg_0]
imul bx, 0FFh
imul bx, 255
mov al, [bx+di+228Eh]
mov bx, [bp+var_E]
mov es, word ptr off_39EA2+2
@ -26058,7 +26058,7 @@ arg_2 = word ptr 8
enter 2, 0
push si
mov si, [bp+arg_0]
cmp si, 0FFh
cmp si, 255
jnz short loc_2229C
mov [bp+var_1], 0
jmp short loc_22287
@ -26972,7 +26972,7 @@ sub_229D1 proc far
; ---------------------------------------------------------------------------
loc_229EF:
mov al, 0FFh
mov al, -1
loc_229F1:
mov byte_3A388, al
@ -31479,7 +31479,7 @@ var_8 = qword ptr -8
loc_2546B:
cmp word_3A6CA, 3Ch ; '<'
jnz short loc_254A0
push 0FFh
push 255
push 0
push 2
push 40020h
@ -31507,7 +31507,7 @@ loc_254A0:
idiv bx
or dx, dx
jnz short loc_25528
push 0FFh
push 255
push 0
push 2
push word_3A6E3
@ -31521,7 +31521,7 @@ loc_254A0:
call sub_17956
add sp, 0Eh
add word_3A6E3, 8
push 0FFh
push 255
push 0
cmp word_3A6CA, 64h ; 'd'
jge short loc_254F7
@ -31558,7 +31558,7 @@ loc_25504:
loc_25528:
cmp word_3A6CA, 78h ; 'x'
jnz short loc_25556
push 0FFh
push 255
push 0
push 20h ; ' '
push word_3A6E3
@ -32042,7 +32042,7 @@ loc_25977:
mov angle_3A6FB, al
cmp angle_3A6FB, 40h
jb loc_25C4A
push 0FFh
push 255
push 0
push 1
push 800080h
@ -32053,7 +32053,7 @@ loc_25977:
add ax, 64
push ax
call sub_17956
push 0FFh
push 255
push 0
push 1
push 70080h
@ -32096,7 +32096,7 @@ loc_25AED:
idiv bx
or dx, dx
jnz short loc_25B3E
push 0FFh
push 255
push 0
push 1
push 800080h
@ -32108,7 +32108,7 @@ loc_25AED:
push ax
call sub_17956
add sp, 0Eh
push 0FFh
push 255
push 0
push 1
push 4
@ -32122,7 +32122,7 @@ loc_25B3E:
idiv bx
cmp dx, 4
jnz loc_25C4A
push 0FFh
push 255
push 0
push 1
push 800080h
@ -32134,7 +32134,7 @@ loc_25B3E:
push ax
call sub_17956
add sp, 0Eh
push 0FFh
push 255
push 0
push 1
push 7
@ -32155,7 +32155,7 @@ loc_25B7A:
loc_25B99:
cmp word_3A6FC, 0
jz loc_25C4A
push 0FFh
push 255
push 0
push 1
push 800080h
@ -32554,7 +32554,7 @@ loc_25EE1:
call sub_1786D
add sp, 30h
mov al, byte ptr word_3A6FE
add al, 0C2h ; '?'
add al, 194
push ax
mov al, byte ptr word_3A6FE
add al, 0C0h ; '?'
@ -32576,7 +32576,7 @@ loc_25EE1:
cmp byte ptr word_3A6FE, 40h
jb loc_260D8
mov word_3A6FE+1, 1
push 0FFh
push 255
push 0
push 1
push 800080h
@ -32587,7 +32587,7 @@ loc_25EE1:
add ax, 64
push ax
call sub_17956
push 0FFh
push 255
push 0
push 1
push 70080h
@ -32623,7 +32623,7 @@ loc_26006:
jnz short loc_26029
push bx
call sub_25DE6
push 0FFh
push 255
push 0
push 1
push 4
@ -32641,7 +32641,7 @@ loc_26029:
jnz short loc_26068
push 7
call sub_25DE6
push 0FFh
push 255
push 0
push 1
push 7
@ -32678,7 +32678,7 @@ loc_26068:
push 96h
push 0EAh
call sub_25CFD
push 0FFh
push 255
push 0
push 1
push 800080h
@ -34728,7 +34728,7 @@ loc_27317:
mov angle_3A76F, al
cmp angle_3A76F, 40h
jb loc_275EF
push 0FFh
push 255
push 0
push 1
push 800080h
@ -34737,7 +34737,7 @@ loc_27317:
add ax, 10h
push ax
call sub_17956
push 0FFh
push 255
push 0
push 1
push 70080h
@ -34780,7 +34780,7 @@ loc_27464:
idiv bx
or dx, dx
jnz short loc_274C6
push 0FFh
push 255
push 0
push 1
push 800080h
@ -34789,7 +34789,7 @@ loc_27464:
add ax, 10h
push ax
call sub_17956
push 0FFh
push 255
push 0
push 1
push 70080h
@ -34881,7 +34881,7 @@ loc_27572:
jl short loc_275EF
cmp word_3A76B, 0C8h ; '?'
jnz short loc_275A1
push 0FFh
push 255
push 0
push 1
push 800080h
@ -35097,7 +35097,7 @@ loc_27759:
mov angle_3A770, al
cmp angle_3A770, 40h
jb loc_27A1C
push 0FFh
push 255
push 0
push 1
push 800080h
@ -35108,7 +35108,7 @@ loc_27759:
add ax, 64
push ax
call sub_17956
push 0FFh
push 255
push 0
push 1
push 70080h
@ -35151,7 +35151,7 @@ loc_278BE:
idiv bx
or dx, dx
jnz short loc_2790F
push 0FFh
push 255
push 0
push 1
push 800080h
@ -35163,7 +35163,7 @@ loc_278BE:
push ax
call sub_17956
add sp, 0Eh
push 0FFh
push 255
push 0
push 1
push 4
@ -35177,7 +35177,7 @@ loc_2790F:
idiv bx
cmp dx, 4
jnz loc_27A1C
push 0FFh
push 255
push 0
push 1
push 800080h
@ -35189,7 +35189,7 @@ loc_2790F:
push ax
call sub_17956
add sp, 0Eh
push 0FFh
push 255
push 0
push 1
push 7
@ -35210,7 +35210,7 @@ loc_2794B:
loc_2796A:
cmp word_3A771, 0
jz loc_27A1C
push 0FFh
push 255
push 0
push 1
push 800080h
@ -38328,7 +38328,7 @@ loc_295EF:
idiv bx
or dx, dx
jz short loc_29665
push 0FFh
push 255
push 0
push 1
push [bp+var_2]
@ -38349,7 +38349,7 @@ loc_29665:
idiv bx
cmp dx, 8
jz short loc_296EC
push 0FFh
push 255
push 0
push 1
push 4
@ -38979,7 +38979,7 @@ loc_29BE7:
lea ax, [bp+var_18]
add si, ax
mov ax, ss:[si]
and ax, 0FFh
and ax, 11111111b
mov es:[bx], ax
loc_29C15:
@ -39053,7 +39053,7 @@ loc_29C2A:
lea ax, [bp+var_E]
add si, ax
mov ax, ss:[si]
and ax, 0FFh
and ax, 11111111b
mov es:[bx], ax
loc_29CAB:
@ -39476,7 +39476,7 @@ loc_2A0B0:
loc_2A0CF:
cmp word_35E03, 3
jnz loc_2A16A
push 0FFh
push 255
push 0
push 8
push 60010h
@ -39485,7 +39485,7 @@ loc_2A0CF:
sar ax, 4
push ax
call sub_1786D
push 0FFh
push 255
push 0
push 8
push 60030h
@ -39494,7 +39494,7 @@ loc_2A0CF:
sar ax, 4
push ax
call sub_1786D
push 0FFh
push 255
push 0
push 6
push 70018h
@ -39534,7 +39534,7 @@ loc_2A175:
or dx, dx
jnz loc_2A2BA
call _egc_copy_rect_1_to_0_16 stdcall, x_3AF34, y_3AF38, 16, bx
push 0FFh
push 255
push 0
push 8
push word_3AF40
@ -39544,7 +39544,7 @@ loc_2A175:
sar ax, 4
push ax
call sub_17956
push 0FFh
push 255
push 0
push 8
push word_3AF3E
@ -39554,7 +39554,7 @@ loc_2A175:
sar ax, 4
push ax
call sub_17956
push 0FFh
push 255
push 0
push 6
push word_3AF42
@ -39592,7 +39592,7 @@ loc_2A175:
; ---------------------------------------------------------------------------
loc_2A245:
push 0FFh
push 255
push 0
push 8
push 5
@ -39603,7 +39603,7 @@ loc_2A245:
sar ax, 4
push ax
call sub_1786D
push 0FFh
push 255
push 0
push 8
push 5
@ -39614,7 +39614,7 @@ loc_2A245:
sar ax, 4
push ax
call sub_1786D
push 0FFh
push 255
push 0
push 6
push 7
@ -41195,7 +41195,7 @@ loc_2B2D1:
idiv di
or dx, dx
jnz short loc_2B349
push 0FFh
push 255
push 0
push 1
push word_3B053
@ -41211,7 +41211,7 @@ loc_2B2D1:
; ---------------------------------------------------------------------------
loc_2B30B:
push 0FFh
push 255
push 0
push 1
push [bp+arg_4]
@ -46288,7 +46288,7 @@ loc_2E580:
; ---------------------------------------------------------------------------
loc_2E589:
cmp word_3A6CA, 0FFh
cmp word_3A6CA, 255
jge short loc_2E5B0
call sub_2CE17 c, large (70 shl 16) or 410, point_3B511.x, point_3B511.y, 6
sub point_3B511.y, 8
@ -46296,7 +46296,7 @@ loc_2E589:
; ---------------------------------------------------------------------------
loc_2E5B0:
cmp word_3A6CA, 0FFh
cmp word_3A6CA, 255
jnz short loc_2E5E9
mov point_3B511.x, RES_X - 1
mov point_3B511.y, 64

View File

@ -230,7 +230,7 @@ loc_3DED:
mov word_1FFF4, 0
mov byte_1FFF8, 0Fh
mov byte_1FFF9, 0
mov byte_1FFFA, 0FFh
mov byte_1FFFA, -1
mov word_1FFF6, 20h ; ' '
pop bp
retf
@ -3079,7 +3079,7 @@ loc_C015:
mov eax, _boss_update_func
mov _boss_update, eax
setfarfp farfp_1F48C, sub_BF9C
mov byte_20343, 0FFh
mov byte_20343, -1
mov bgm_show_timer, 1
mov al, byte_1F46E
mov _bgm_title_id, al
@ -6013,7 +6013,7 @@ arg_2 = word ptr 6
mov [bp+var_14], al
cmp point_205F6.x, 128
jg short loc_D794
mov al, 0FFh
mov al, -1
jmp short loc_D7A2
; ---------------------------------------------------------------------------
@ -6563,7 +6563,7 @@ loc_DBFE:
cmp ax, RANK_HARD
jl short loc_DC28
mov cl, _rank
add cl, 0FFh
add cl, -1
mov eax, dword_218A4
shl eax, cl
mov dword_218A4, eax
@ -8541,7 +8541,7 @@ loc_EE0B:
mov cx, 4
mov dx, 10h
mov bx, [bp+arg_0]
mov al, 0FFh
mov al, 11111111b
loc_EE2E:
mov es:[di], al
@ -8735,7 +8735,7 @@ loc_EF5F:
cmp _player_is_hit, 0
jz short loc_EF7F
call sub_EFF2
cmp _player_is_hit, 0FFh
cmp _player_is_hit, -1
jnz short loc_EFEF
mov byte_20607, 1
mov _player_is_hit, 0
@ -8888,7 +8888,7 @@ loc_F0B9:
push word ptr [bx]
call sub_D743
mov byte_218A1, 0
mov _player_is_hit, 0FFh
mov _player_is_hit, -1
jmp loc_F1D5
; ---------------------------------------------------------------------------
@ -9166,7 +9166,7 @@ loc_F2FB:
mov [bx], ax
test byte ptr _key_det, INPUT_SHOT
jz short loc_F349
cmp byte_1EB0D, 0FFh
cmp byte_1EB0D, -1
jnz short loc_F336
mov byte_1EB0D, 0
mov byte_22D4A, 0
@ -9174,7 +9174,7 @@ loc_F2FB:
; ---------------------------------------------------------------------------
loc_F336:
cmp byte_1EB0E, 0FFh
cmp byte_1EB0E, -1
jnz short loc_F368
mov byte_1EB0E, 0
mov byte_22D4B, 0
@ -9184,7 +9184,7 @@ loc_F336:
loc_F349:
cmp byte_1EB0D, 3
jb short loc_F35C
mov byte_1EB0D, 0FFh
mov byte_1EB0D, -1
mov byte_1EB0E, 4
jmp short loc_F368
; ---------------------------------------------------------------------------
@ -9192,10 +9192,10 @@ loc_F349:
loc_F35C:
cmp byte_1EB0E, 2
jb short loc_F368
mov byte_1EB0E, 0FFh
mov byte_1EB0E, -1
loc_F368:
cmp byte_1EB0D, 0FFh
cmp byte_1EB0D, -1
jz short loc_F3B3
cmp byte_22D4A, 0
jnz short loc_F3AF
@ -15678,7 +15678,7 @@ loc_12F59:
sub [bp+var_4], 190h
loc_12F6E:
cmp di, 0FFh
cmp di, 255
jnz short loc_12F94
call grcg_setcolor pascal, (GC_RMW shl 16) + 0
push 40
@ -16435,11 +16435,11 @@ sub_13439 endp
sub_134A0 proc near
push bp
mov bp, sp
push 0FFh
push 255
call sub_13055
push 0
call sub_13055
push 0FFh
push 255
call sub_13055
pop bp
retn
@ -20906,7 +20906,7 @@ loc_15B65:
add ax, 64
cwd
idiv bx
add al, 0FFh
add al, -1
mov byte_25590, al
mov patnum_2064E, 134
jmp loc_15D51
@ -21091,7 +21091,7 @@ var_1 = byte ptr -1
; ---------------------------------------------------------------------------
loc_15D7E:
mov al, 0FFh
mov al, -1
loc_15D80:
mov byte_25597, al
@ -21295,7 +21295,7 @@ loc_15F06:
; ---------------------------------------------------------------------------
loc_15F19:
mov al, 0FFh
mov al, -1
loc_15F1B:
mov byte_25598, al
@ -23226,7 +23226,7 @@ loc_16FD2:
add bx, word_26C44
cmp byte ptr [bx+2], 0
jnz short loc_16FE7
mov al, 0FFh
mov al, -1
jmp short loc_16FE9
; ---------------------------------------------------------------------------
@ -23247,7 +23247,7 @@ loc_16FFA:
mov bx, word_26C46
cmp word ptr [bx+18h], 1
jnz short loc_17008
mov al, 0FFh
mov al, -1
jmp short loc_1700A
; ---------------------------------------------------------------------------
@ -25488,7 +25488,7 @@ arg_4 = dword ptr 8
shl word_26CCC, 4
shl word_26CCE, 4
mov word_26CD0, 4
mov byte_26CD3, 0FFh
mov byte_26CD3, -1
mov byte_26CD4, 0
jmp loc_1889C
; ---------------------------------------------------------------------------
@ -25825,7 +25825,7 @@ loc_18783:
loc_18791:
cmp word_26CD0, 80h
jle short loc_1879E
mov byte_26CD3, 0FEh
mov byte_26CD3, -2
loc_1879E:
mov ax, word_26CCC
@ -26391,7 +26391,7 @@ loc_18C9B:
mov byte_26CE2, al
cmp point_205F6.x, 208
jg short loc_18CDF
mov al, 0FFh
mov al, -1
jmp short loc_18CE1
; ---------------------------------------------------------------------------
@ -30584,7 +30584,7 @@ sub_1B555 proc near
; ---------------------------------------------------------------------------
loc_1B579:
mov al, 0FFh
mov al, -1
loc_1B57B:
mov byte_26D81, al
@ -30994,7 +30994,7 @@ loc_1B8C5:
add ax, 16
push ax
push word_26D87+1
push 0FFh
push 255
push 55003Ch
call sub_10865
jmp loc_1B992
@ -31460,7 +31460,7 @@ loc_1BD46:
add ax, 8
push ax
push 0C0h
push 0FFh
push 255
push 550046h
call sub_10865
@ -31477,7 +31477,7 @@ loc_1BD86:
add ax, 40
push ax
push 0C0h
push 0FFh
push 255
push 550046h
call sub_10865
jmp loc_1BE2F
@ -31515,7 +31515,7 @@ loc_1BDC4:
push dx
push 10h
push [bp+var_3]
push 0FFh
push 255
push 55h ; 'U'
call randring2_next8_and pascal, 1Fh
mov ah, 0
@ -31530,7 +31530,7 @@ loc_1BDC4:
add dx, 10h
push dx
push [bp+var_3]
push 0FFh
push 255
push 55h ; 'U'
call randring2_next8_and pascal, 1Fh
mov ah, 0
@ -31904,7 +31904,7 @@ loc_1C0F2:
mov bx, 3
cwd
idiv bx
mov al, 0FFh
mov al, 255
sub al, dl
mov byte_26D4D, al
@ -32374,7 +32374,7 @@ loc_1C473:
mov bx, [bx+7F0Eh]
add bx, bx
mov ax, [bx+1EDAh]
and ax, 0FFh
and ax, 255
mov bx, word ptr [bp+dest]
mov [bx+1Eh], ax
mov ax, [bx+1Ah]
@ -32430,7 +32430,7 @@ loc_1C518:
inc word ptr [bp+src]
inc [bp+var_4]
les bx, [bp+src]
cmp byte ptr es:[bx], 0FFh
cmp byte ptr es:[bx], -1
jnz short loc_1C518
inc word ptr [bp+src]
mov al, byte_22FDB
@ -32501,7 +32501,7 @@ loc_1C5BD:
push es
push bx
les bx, [bp+src]
cmp byte ptr es:[bx], 0FFh
cmp byte ptr es:[bx], -1
jnz short loc_1C5DD
mov ax, 0FFFFh
jmp short loc_1C5E5
@ -33984,8 +33984,8 @@ asc_1E6DF db ' ',0
include th02/sprites/sparks.asp
word_1EB0A dw 0
byte_1EB0C db 0
byte_1EB0D db 0FFh
byte_1EB0E db 0FFh
byte_1EB0D db -1
byte_1EB0E db -1
db 1
db 1
db 4

View File

@ -632,7 +632,7 @@ loc_9BC5:
jz short loc_9BF4
loc_9BEF:
mov byte_220DC, 0FFh
mov byte_220DC, -1
loc_9BF4:
les bx, _resident
@ -684,7 +684,7 @@ loc_9C51:
mov _p2.cpu_safety_frames, ax
mov byte_202B6, 1
mov byte_202B7, 1
mov byte_220DC, 0FFh
mov byte_220DC, -1
mov _cpu_hit_damage_additional, 0
push 3
@ -1175,7 +1175,7 @@ loc_A10B:
mov byte_202B7, 10h
loc_A117:
mov byte_1DB9E, 0FFh
mov byte_1DB9E, -1
mov byte_20E3C, 0
mov byte_207E2, 1
mov word_21434, 1400h
@ -3952,7 +3952,7 @@ loc_C159:
add ax, ax
mov bx, ax
mov _playfield_fg_shift_x[bx], 0
mov byte ptr [si+1Fh], 0FFh
mov byte ptr [si+1Fh], -1
mov PaletteTone, 100
call far ptr palette_show
mov byte_20E3C, 2
@ -5055,28 +5055,28 @@ loc_C956:
mov cx, [bp+var_4]
or cx, cx
jz short loc_C9A6
cmp cx, 40h
cmp cx, 64
jnb short loc_C968
mov [bp+var_1], 0Fh
jmp short loc_C990
; ---------------------------------------------------------------------------
loc_C968:
cmp cx, 80h
cmp cx, 128
jnb short loc_C974
mov [bp+var_1], 0Ah
jmp short loc_C990
; ---------------------------------------------------------------------------
loc_C974:
cmp cx, 0C0h
cmp cx, 192
jnb short loc_C980
mov [bp+var_1], 8
jmp short loc_C990
; ---------------------------------------------------------------------------
loc_C980:
cmp cx, 0FFh
cmp cx, 255
jnb short loc_C98C
mov [bp+var_1], 6
jmp short loc_C990
@ -5099,28 +5099,28 @@ loc_C9A6:
mov cx, [bp+var_6]
or cx, cx
jz short loc_C9F6
cmp cx, 40h
cmp cx, 64
jnb short loc_C9B8
mov [bp+var_1], 0Fh
jmp short loc_C9E0
; ---------------------------------------------------------------------------
loc_C9B8:
cmp cx, 80h
cmp cx, 128
jnb short loc_C9C4
mov [bp+var_1], 0Ah
jmp short loc_C9E0
; ---------------------------------------------------------------------------
loc_C9C4:
cmp cx, 0C0h
cmp cx, 192
jnb short loc_C9D0
mov [bp+var_1], 8
jmp short loc_C9E0
; ---------------------------------------------------------------------------
loc_C9D0:
cmp cx, 0FFh
cmp cx, 255
jnb short loc_C9DC
mov [bp+var_1], 6
jmp short loc_C9E0
@ -6592,7 +6592,7 @@ loc_D56B:
inc byte_220DC
cmp byte_220DC, 2
jnz short locret_D5A0
mov byte_220DC, 0FFh
mov byte_220DC, -1
locret_D5A0:
retn
@ -7386,14 +7386,14 @@ loc_DB0A:
; ---------------------------------------------------------------------------
loc_DB1E:
cmp byte_20E48, 0FFh
cmp byte_20E48, -1
jnz short loc_DB2B
mov [bp+var_5], 20h ; ' '
jmp short loc_DB3C
; ---------------------------------------------------------------------------
loc_DB2B:
cmp byte_20E48, 0FEh
cmp byte_20E48, -2
jnz short loc_DB38
mov [bp+var_5], 7
jmp short loc_DB3C
@ -7560,7 +7560,7 @@ loc_DC64:
loc_DCBC:
add word_21434, 2800h
cmp byte_1DB9E, 0FFh
cmp byte_1DB9E, -1
jnz short loc_DCCE
inc byte ptr [si+77h]
jmp short loc_DD2B
@ -7739,7 +7739,7 @@ loc_DE3F:
; ---------------------------------------------------------------------------
loc_DE45:
cmp byte ptr [si+1Fh], 0FFh
cmp byte ptr [si+1Fh], -1
jz short loc_DE4F
push si
call sub_C0D8
@ -7804,7 +7804,7 @@ arg_0 = word ptr 4
mov si, [bp+arg_0]
cmp byte ptr [si+1Fh], 0
jz short loc_DEB2
cmp byte ptr [si+1Fh], 0FFh
cmp byte ptr [si+1Fh], -1
jz short loc_DF12
push si
call sub_C248
@ -8155,12 +8155,12 @@ loc_E13C:
sar dx, 3
mov di, [bp+arg_0]
add di, cx
mov ch, 0FFh
mov ch, 11111111b
shr ch, cl
mov bx, di
cmp bx, 8
jg short loc_E163
mov bh, 0FFh
mov bh, 11111111b
mov cl, bl
shr bh, cl
xor ch, bh
@ -8213,11 +8213,11 @@ loc_E1B3:
mov ch, 0
add bx, cx
sub di, 8
mov ch, 0FFh
mov ch, 11111111b
cmp di, 8
jnb short loc_E1CB
mov cx, di
mov ch, 0FFh
mov ch, 11111111b
shr ch, cl
not ch
@ -8572,7 +8572,7 @@ loc_E4A2:
movzx eax, byte_23DF9
imul eax, 100000
add score_23DF0, eax
mov byte_220DC, 0FFh
mov byte_220DC, -1
loc_E55E:
mov eax, score_23DF0
@ -9359,7 +9359,7 @@ loc_F32F:
; ---------------------------------------------------------------------------
loc_F34E:
mov al, 0FFh
mov al, -1
loc_F350:
pop di
@ -9436,7 +9436,7 @@ loc_F3D6:
cmp word_1F340, 1A00h
jl short loc_F400
mov byte_1F34F, 0
mov byte_1DB9E, 0FFh
mov byte_1DB9E, -1
mov word_21434, 1400h
loc_F400:
@ -9459,7 +9459,7 @@ sub_F402 proc near
mov bx, ax
cmp byte ptr [bx+2D54h], 5
jnz loc_F4AE
cmp byte_1DB9E, 0FFh
cmp byte_1DB9E, -1
jnz short loc_F481
mov si, 1DFEh
cmp _pid_current, 1
@ -9499,9 +9499,9 @@ loc_F42B:
; ---------------------------------------------------------------------------
loc_F481:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_F4AE
mov byte_1F34F, 0FFh
mov byte_1F34F, -1
mov word_1F3B0, 0
mov al, 1
sub al, _pid_current
@ -9538,9 +9538,9 @@ sub_F4B4 proc far
mov [bp+@@pid_other], al
cmp word_1F34A, 0
jg short locret_F510
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short locret_F510
mov byte_1F34F, 0FFh
mov byte_1F34F, -1
mov word_1F3B0, 0
push word ptr [bp+@@pid_other]
call sub_A3A8
@ -9652,7 +9652,7 @@ sub_F58C proc near
mov byte_1F34F, al
cmp byte_1F34F, 0
jnz short loc_F5AD
mov byte_1DB9E, 0FFh
mov byte_1DB9E, -1
loc_F5AD:
pop bp
@ -10293,7 +10293,7 @@ loc_FB1E:
; ---------------------------------------------------------------------------
loc_FB35:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_FB41
call sub_F9A6
leave
@ -11090,7 +11090,7 @@ loc_10299:
; ---------------------------------------------------------------------------
loc_102B7:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_102C3
call sub_10053
leave
@ -12092,7 +12092,7 @@ loc_10BE1:
; ---------------------------------------------------------------------------
loc_10BED:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_10BF9
call sub_108CA
leave
@ -12950,7 +12950,7 @@ reimu_113A9 proc far
; ---------------------------------------------------------------------------
loc_113D1:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_113DD
call sub_111A3
pop bp
@ -13728,7 +13728,7 @@ loc_11A37:
; ---------------------------------------------------------------------------
loc_11A5C:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_11A68
call sub_11885
leave
@ -14535,7 +14535,7 @@ loc_12172:
; ---------------------------------------------------------------------------
loc_1218C:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_12198
call sub_120A0
pop bp
@ -15680,7 +15680,7 @@ loc_12BCB:
; ---------------------------------------------------------------------------
loc_12BD7:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_12BE3
call sub_12A10
pop bp
@ -15689,7 +15689,7 @@ loc_12BD7:
loc_12BE3:
call sub_F58C
cmp byte_1DB9E, 0FFh
cmp byte_1DB9E, -1
jnz short loc_12BF9
mov al, 1
sub al, _pid_current
@ -16044,20 +16044,20 @@ loc_12F17:
sub dx, ax
push dx
call sub_CE0C
mov byte_23DE6, 0C0h
mov byte_23DE6, -40h
push 3
call randring_far_next16_and
mov byte_23DE7, al
cmp byte_23DE7, 0
jnz short loc_12F5A
mov al, 0FDh
mov al, -3
jmp short loc_12F72
; ---------------------------------------------------------------------------
loc_12F5A:
cmp byte_23DE7, 1
jnz short loc_12F65
mov al, 0FFh
mov al, -1
jmp short loc_12F72
; ---------------------------------------------------------------------------
@ -16508,7 +16508,7 @@ loc_13330:
; ---------------------------------------------------------------------------
loc_1333C:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_13348
call sub_13174
pop bp
@ -16685,7 +16685,7 @@ var_1 = byte ptr -1
enter 2, 0
push si
cmp byte_1F358, 0F8h
cmp byte_1F358, -8
jl short loc_134C1
test byte ptr word_1F3B0, 7
jnz short loc_134C1
@ -16811,7 +16811,7 @@ var_1 = byte ptr -1
jnz short loc_135CD
cmp byte_1F358, 2
jle short loc_135C4
mov al, 0FFh
mov al, -1
jmp short loc_135C6
; ---------------------------------------------------------------------------
@ -17262,7 +17262,7 @@ loc_139BD:
; ---------------------------------------------------------------------------
loc_139C9:
cmp byte_1F34F, 0FFh
cmp byte_1F34F, -1
jz short loc_139D5
call sub_137CF
pop bp
@ -17357,13 +17357,13 @@ loc_13AE3:
loc_13AFC:
add bx, 1234h
mov ax, cx
mov ah, 0FFh
mov ah, 11111111b
loc_13B04:
shr ah, 4
cmp dl, 8
jge short loc_13B14
mov ch, 0FFh
mov ch, 11111111b
mov cl, dl
shr ch, cl
xor ah, ch
@ -17387,7 +17387,7 @@ loc_13B1B:
loc_13B2C:
add cx, 1234h
add bx, cx
mov ah, 0FFh
mov ah, 11111111b
cmp dl, 8
jge short loc_13B14
mov cl, dl
@ -17466,7 +17466,7 @@ sub_13B9A proc far
loc_13BAA:
add bx, 4BA0h
mov word ptr cs:loc_13BE9+1, bx
mov al, 0FFh
mov al, 11111111b
mov cx, word_220F2
shr al, cl
not al
@ -22625,7 +22625,7 @@ arg_2 = word ptr 6
inc byte_1F39E
loc_16656:
cmp byte_1DB9E, 0FFh
cmp byte_1DB9E, -1
jnz short loc_1666D
mov al, cl
mov ah, 0
@ -23011,14 +23011,14 @@ arg_0 = byte ptr 6
push bp
mov bp, sp
push si
mov dl, 0FFh
mov dl, -1
mov al, [bp+arg_0]
mov ah, 0
add ax, ax
mov bx, ax
cmp word ptr [bx+1DCAh], 0
jz short loc_169AD
mov byte_20E48, 0FEh
mov byte_20E48, -2
mov ax, word_1F326
mov word_2142E, ax
mov ax, word_1F328
@ -23062,11 +23062,11 @@ loc_169EF:
jl short loc_169B4
loc_169F4:
cmp dl, 0FFh
cmp dl, -1
jnz short loc_16A0C
mov word_2142E, 900h
mov word_21430, 12C0h
mov byte_20E48, 0FFh
mov byte_20E48, -1
jmp short loc_16A50
; ---------------------------------------------------------------------------
@ -26199,7 +26199,7 @@ loc_182D6:
mov bx, ax
mov al, [bx+4B3Eh]
add al, byte_2203A
add al, 0FFh
add al, -1
mov dl, [bp+@@pid]
mov dh, 0
shl dx, 4
@ -28131,7 +28131,7 @@ arg_4 = word ptr 0Ah
call randring_far_next16_and
or ax, ax
jnz short loc_19423
mov al, 0FFh
mov al, -1
jmp short loc_19425
; ---------------------------------------------------------------------------
@ -33029,7 +33029,7 @@ loc_1B855:
loc_1B871:
mov bx, word_1F868
mov al, [bx]
add al, 0FFh
add al, -1
mov [bx], al
cmp al, 1
jnz short loc_1B886

View File

@ -2447,7 +2447,7 @@ loc_ABFE:
; ---------------------------------------------------------------------------
loc_AC1A:
mov al, 0FFh ; jumptable 0000A67C case 36
mov al, -1 ; jumptable 0000A67C case 36
jmp short loc_AC20
; ---------------------------------------------------------------------------
@ -2540,7 +2540,7 @@ loc_ACBB:
inc word ptr _cutscene_script
push word ptr [bp+var_1]
call sub_A64D
cmp al, 0FFh
cmp al, -1
jnz short loc_ACA3
jmp loc_ADA0
; ---------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff

View File

@ -1554,7 +1554,7 @@ loc_AD95:
; ---------------------------------------------------------------------------
loc_ADB1:
mov al, 0FFh ; jumptable 0000A876 case 36
mov al, -1 ; jumptable 0000A876 case 36
jmp short loc_ADB7
; ---------------------------------------------------------------------------
@ -1639,7 +1639,7 @@ loc_AE45:
inc _cutscene_script_ptr
push word ptr [bp+var_1]
call sub_A847
cmp al, 0FFh
cmp al, -1
jnz short loc_AE2D
jmp short loc_AEC8
; ---------------------------------------------------------------------------

View File

@ -41,7 +41,7 @@ envp = word ptr 8
ja short loc_389
push offset DGROUP:aVVxvVSlvsvVvvi ; "ちょっと足りないかも、もう少し増やして"...
call sub_38E
mov ax, 0FFh
mov ax, 255
leave
retn
; ---------------------------------------------------------------------------

View File

@ -3656,7 +3656,7 @@ sub_D3C6 proc near
enter 6, 0
push si
push di
cmp word_21D6E, 0FFh
cmp word_21D6E, (-1 and 255)
jnz loc_D456
mov [bp+@@set], offset _linesets
xor di, di
@ -3715,7 +3715,7 @@ loc_D44B:
mov word_21D6E, 0
loc_D456:
cmp word_21D6E, 40h
cmp word_21D6E, BOSS_PARTICLE_COUNT
jge short loc_D4BE
mov ax, _boss_phase_frame
mov bx, 4
@ -6089,7 +6089,7 @@ arg_4 = word ptr 8
push di
mov di, offset aBss0_cd2_0
mov [bp+var_6], offset aKao0_cd2_0
cmp [bp+arg_0], 0FFh
cmp [bp+arg_0], (-1 and 255)
jz loc_F432
cmp _Ems, 0
jz loc_F40F
@ -6161,7 +6161,7 @@ loc_F432:
push [bp+arg_4]
push [bp+arg_2]
call sub_EF2A
cmp [bp+arg_0], 0FFh
cmp [bp+arg_0], (-1 and 255)
jz short loc_F45D
call cdg_put pascal, [bp+arg_4], [bp+arg_2], 2
call cdg_free pascal, 2
@ -15677,7 +15677,7 @@ loc_18783:
mov _boss_phase_frame, 0
mov _boss_mode, 0
mov _boss_mode_change, 0
mov byte_2D080, 0FFh
mov byte_2D080, -1
mov byte_2D07F, 40h
jmp short loc_1877A
; ---------------------------------------------------------------------------
@ -19852,7 +19852,7 @@ loc_1AE17:
loc_1AE2C:
mov al, byte ptr [bp+var_2]
add al, 0FFh
add al, -1
mov _boss2_mode_change, al
mov _boss_phase, PHASE_BOSS_EXPLODE_SMALL
mov _boss_phase_frame, 0
@ -27799,7 +27799,7 @@ include th04/sprites/pointnum.asp
include th05/formats/bb_playchar[data].asm
byte_21D6C db 0
db 0
word_21D6E dw 0FFh
word_21D6E dw (-1 and 255)
byte_21D70 db 0
db 0
word_21D72 dw 0

View File

@ -1251,7 +1251,7 @@ loc_AF18:
; ---------------------------------------------------------------------------
loc_AF8B:
mov al, 0FFh ; jumptable 0000A9F2 case 36
mov al, -1 ; jumptable 0000A9F2 case 36
jmp short loc_AF91
; ---------------------------------------------------------------------------
@ -1339,7 +1339,7 @@ loc_B01D:
inc _cutscene_script_ptr
push [bp+var_3]
call sub_A9C3
cmp al, 0FFh
cmp al, -1
jnz short loc_B005
jmp loc_B196
; ---------------------------------------------------------------------------

View File

@ -42,7 +42,7 @@ start proc near
cmp bx, 32500
jnb short loc_131
mov di, offset aVVxvVBagbgvgkv ; "ちょっと、メモリが足りないかも\r\nこのゲ"...
mov byte_236, 0FFh
mov byte_236, 255
loc_131:
xor dx, dx