2012-06-05 19:33:54 +04:00
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
BUF_STRUCT_SIZE equ 21
|
|
|
|
|
buf2d_data equ dword[edi] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࠦ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_w equ dword[edi+8] ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_h equ dword[edi+12] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_l equ word[edi+4]
|
|
|
|
|
buf2d_t equ word[edi+6] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᢥ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_size_lt equ dword[edi+4] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ࠢ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_color equ dword[edi+16] ;梥<EFBFBD> 䮭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
buf2d_bits equ byte[edi+20] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD><EFBFBD> <EFBFBD> 1-<EFBFBD> <EFBFBD><EFBFBD>窥 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࠦ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
vox_offs_tree_table equ 4
|
|
|
|
|
vox_offs_data equ 12
|
|
|
|
|
|
|
|
|
|
;output:
|
2012-06-11 02:19:58 +04:00
|
|
|
|
; eax - (event shl 30) + position
|
2012-06-05 19:33:54 +04:00
|
|
|
|
align 4
|
2012-06-11 02:19:58 +04:00
|
|
|
|
proc get_mouse_ev_scale uses ebx ecx edx, h_br:dword, coord_x:dword, coord_y:dword, scale_obj:dword, scale_img:dword
|
|
|
|
|
mov ecx,[scale_obj]
|
|
|
|
|
stdcall [buf2d_vox_obj_get_img_h_3g], [h_br],ecx
|
|
|
|
|
cmp eax,[coord_y]
|
|
|
|
|
jle .test_x
|
|
|
|
|
stdcall [buf2d_vox_obj_get_img_w_3g], [h_br],ecx
|
|
|
|
|
cmp eax,[coord_x]
|
|
|
|
|
jle .test_z
|
|
|
|
|
|
|
|
|
|
.no_change:
|
2012-06-05 19:33:54 +04:00
|
|
|
|
xor eax,eax
|
2012-06-11 02:19:58 +04:00
|
|
|
|
jmp .end_f
|
|
|
|
|
|
|
|
|
|
.test_x:
|
|
|
|
|
mov ebx,[h_br]
|
|
|
|
|
movzx ebx,byte[ebx+1]
|
|
|
|
|
add eax,ebx
|
|
|
|
|
cmp eax,[coord_y]
|
|
|
|
|
jl .no_change
|
|
|
|
|
stdcall [buf2d_vox_obj_get_img_w_3g], [h_br],ecx
|
|
|
|
|
cmp eax,[coord_x]
|
|
|
|
|
jl .no_change
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
mov ecx,[scale_img]
|
|
|
|
|
inc ecx
|
|
|
|
|
shr ebx,cl
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mov eax,[coord_x]
|
|
|
|
|
div ebx
|
|
|
|
|
dec ecx
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
|
|
|
|
shl ebx,cl
|
|
|
|
|
cmp eax,ebx
|
|
|
|
|
jge @f
|
|
|
|
|
or eax,1 shl 30
|
|
|
|
|
jmp .end_f
|
2012-06-05 19:33:54 +04:00
|
|
|
|
@@:
|
2012-06-11 02:19:58 +04:00
|
|
|
|
sub eax,ebx
|
|
|
|
|
or eax,2 shl 30
|
|
|
|
|
jmp .end_f
|
|
|
|
|
|
|
|
|
|
.test_z:
|
|
|
|
|
mov ebx,[h_br]
|
|
|
|
|
movzx ebx,byte[ebx]
|
|
|
|
|
add eax,ebx
|
|
|
|
|
cmp eax,[coord_x]
|
|
|
|
|
jl .no_change
|
|
|
|
|
mov ebx,[h_br]
|
|
|
|
|
movzx ebx,byte[ebx+1]
|
|
|
|
|
mov ecx,[scale_obj]
|
|
|
|
|
shl ebx,cl
|
|
|
|
|
mov ecx,[scale_img]
|
|
|
|
|
shr ebx,cl
|
|
|
|
|
mov eax,[coord_y]
|
|
|
|
|
xor edx,edx
|
|
|
|
|
div ebx
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> y
|
|
|
|
|
xor edx,edx
|
|
|
|
|
inc edx
|
|
|
|
|
shl edx,cl
|
|
|
|
|
dec edx
|
|
|
|
|
sub edx,eax
|
|
|
|
|
mov eax,edx
|
|
|
|
|
or eax,3 shl 30
|
2012-06-05 19:33:54 +04:00
|
|
|
|
|
|
|
|
|
.end_f:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;x0y0 - x1y0
|
|
|
|
|
;x1y0 - x1y1
|
|
|
|
|
;x0y1 - x0y0
|
|
|
|
|
;x1y1 - x0y1
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_rot_z uses eax ebx ecx, v_obj:dword
|
|
|
|
|
mov ebx,[v_obj]
|
|
|
|
|
add ebx,vox_offs_tree_table
|
|
|
|
|
mov ecx,2
|
|
|
|
|
cld
|
|
|
|
|
@@:
|
|
|
|
|
mov eax,dword[ebx]
|
|
|
|
|
mov byte[ebx+1],al
|
|
|
|
|
mov byte[ebx+3],ah
|
|
|
|
|
shr eax,16
|
|
|
|
|
mov byte[ebx],al
|
|
|
|
|
mov byte[ebx+2],ah
|
|
|
|
|
add ebx,4
|
|
|
|
|
loop @b
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;y0z0 - y0z1
|
|
|
|
|
;y0z1 - y1z1
|
|
|
|
|
;y1z1 - y1z0
|
|
|
|
|
;y1z0 - y0z0
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_rot_x uses eax ebx ecx, v_obj:dword
|
|
|
|
|
mov ebx,[v_obj]
|
|
|
|
|
add ebx,vox_offs_tree_table
|
|
|
|
|
mov eax,dword[ebx]
|
|
|
|
|
mov ecx,dword[ebx+4]
|
|
|
|
|
|
|
|
|
|
mov byte[ebx+4],al
|
|
|
|
|
mov byte[ebx+5],ah
|
|
|
|
|
shr eax,16
|
|
|
|
|
mov byte[ebx+0],al
|
|
|
|
|
mov byte[ebx+1],ah
|
|
|
|
|
|
|
|
|
|
mov byte[ebx+6],cl
|
|
|
|
|
mov byte[ebx+7],ch
|
|
|
|
|
shr ecx,16
|
|
|
|
|
mov byte[ebx+2],cl
|
|
|
|
|
mov byte[ebx+3],ch
|
|
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;output:
|
|
|
|
|
; eax - <EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD> v_obj
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_get_nodes uses edi, v_obj:dword
|
|
|
|
|
mov edi,[v_obj]
|
|
|
|
|
add edi,vox_offs_data
|
|
|
|
|
xor eax,eax
|
|
|
|
|
stdcall vox_obj_rec0
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2012-06-11 02:19:58 +04:00
|
|
|
|
;???
|
2012-06-05 19:33:54 +04:00
|
|
|
|
;input:
|
|
|
|
|
; edi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ쭮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
;output:
|
|
|
|
|
; eax - eax + <EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
; edi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> ᬥ饭<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_rec0
|
|
|
|
|
inc eax
|
|
|
|
|
cmp byte[edi+3],0 ;ᬮ<EFBFBD>ਬ <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ<EFBFBD><EFBFBD>
|
|
|
|
|
je .sub_trees
|
|
|
|
|
|
|
|
|
|
;४<EFBFBD><EFBFBD>ᨢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ॡ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ쥢
|
|
|
|
|
push ebx ecx
|
|
|
|
|
mov bh,byte[edi+3]
|
|
|
|
|
add edi,4
|
|
|
|
|
mov bl,8
|
|
|
|
|
.cycle:
|
|
|
|
|
bt bx,8 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㥬 ⮫쪮 bh
|
|
|
|
|
jnc .c_next
|
|
|
|
|
stdcall vox_obj_rec0
|
|
|
|
|
.c_next:
|
|
|
|
|
shr bh,1
|
|
|
|
|
dec bl
|
|
|
|
|
jnz .cycle
|
|
|
|
|
pop ecx ebx
|
|
|
|
|
|
|
|
|
|
jmp .end_f
|
|
|
|
|
.sub_trees:
|
|
|
|
|
add edi,4
|
|
|
|
|
.end_f:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
;output:
|
|
|
|
|
; eax - ࠧ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ⮬ v_obj
|
|
|
|
|
align 4
|
|
|
|
|
proc buf2d_vox_obj_get_size, v_obj:dword
|
|
|
|
|
stdcall vox_obj_get_nodes,[v_obj]
|
|
|
|
|
shl eax,2
|
|
|
|
|
add eax,vox_offs_data
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
; ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD> <EFBFBD> 3 <EFBFBD>⠯<EFBFBD>:
|
|
|
|
|
; 1) <EFBFBD>饬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ॢ<EFBFBD>, <EFBFBD>㤠 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 2-<EFBFBD> <EFBFBD>⠯ <EFBFBD>ய<EFBFBD>᪠<EFBFBD><EFBFBD>)
|
|
|
|
|
; 2) <EFBFBD><EFBFBD>⠢<EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD><EFBFBD> (3-<EFBFBD> <EFBFBD>⠯ 㦥 <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
; 3) <EFBFBD><EFBFBD><EFBFBD>塞 梥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc buf2d_vox_obj_create_node, v_obj:dword,coord_x:dword,coord_y:dword,\
|
2012-06-11 02:19:58 +04:00
|
|
|
|
coord_z:dword,k_scale:dword,color:dword
|
2012-06-05 19:33:54 +04:00
|
|
|
|
pushad
|
|
|
|
|
locals
|
|
|
|
|
p_node dd 0 ;த<EFBFBD>⥫<EFBFBD>᪨<EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
endl
|
|
|
|
|
|
|
|
|
|
mov edi,[v_obj]
|
|
|
|
|
add edi,vox_offs_data
|
|
|
|
|
mov esi,[k_scale]
|
|
|
|
|
cmp esi,1
|
|
|
|
|
jl .change
|
|
|
|
|
; *** (1) ***
|
|
|
|
|
.found:
|
|
|
|
|
stdcall vox_obj_get_node_position, [v_obj],[coord_x],[coord_y],[coord_z],esi
|
|
|
|
|
movzx bx,byte[edi+3]
|
|
|
|
|
mov [p_node],edi
|
|
|
|
|
add edi,4
|
2012-06-11 02:19:58 +04:00
|
|
|
|
|
2012-06-05 19:33:54 +04:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_1
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
cld
|
2012-06-11 02:19:58 +04:00
|
|
|
|
@@: ;横<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ய<EFBFBD>᪠ <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ쥢 <EFBFBD> 㧫<EFBFBD>
|
2012-06-05 19:33:54 +04:00
|
|
|
|
bt bx,0 ;<EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
jnc .end_0
|
|
|
|
|
xor eax,eax
|
|
|
|
|
stdcall vox_obj_rec0 ;<EFBFBD> eax <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢨
|
|
|
|
|
.end_0:
|
|
|
|
|
shr bx,1
|
|
|
|
|
loop @b
|
|
|
|
|
.end_1:
|
|
|
|
|
bt bx,0
|
|
|
|
|
jnc .creat ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD> ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dec esi
|
|
|
|
|
cmp esi,0
|
|
|
|
|
jg .found
|
|
|
|
|
jmp .change
|
|
|
|
|
|
|
|
|
|
; *** (2) ***
|
|
|
|
|
.creat:
|
|
|
|
|
mov edx,[color] ;<EFBFBD><EFBFBD><EFBFBD>塞 梥<EFBFBD>
|
|
|
|
|
and edx,0xffffff ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>䨫<EFBFBD><EFBFBD>⨪<EFBFBD>
|
|
|
|
|
mov ecx,esi
|
|
|
|
|
stdcall vox_obj_add_nodes_mem, [v_obj],edi,ecx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ⮬, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD>
|
|
|
|
|
mov ebx,[p_node]
|
|
|
|
|
cld
|
|
|
|
|
@@:
|
|
|
|
|
mov dword[edi],edx
|
|
|
|
|
stdcall vox_obj_get_node_bit_mask, [v_obj],[coord_x],[coord_y],[coord_z],esi
|
|
|
|
|
or byte[ebx+3],al
|
|
|
|
|
|
|
|
|
|
mov ebx,edi
|
|
|
|
|
add edi,4
|
|
|
|
|
dec esi
|
|
|
|
|
loop @b
|
|
|
|
|
jmp .end_2
|
|
|
|
|
|
|
|
|
|
; *** (3) ***
|
|
|
|
|
.change:
|
|
|
|
|
mov eax,[color] ;<EFBFBD><EFBFBD><EFBFBD>塞 梥<EFBFBD>
|
|
|
|
|
mov word[edi],ax
|
|
|
|
|
shr eax,16
|
|
|
|
|
mov byte[edi+2],al
|
|
|
|
|
|
|
|
|
|
.end_2:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2012-06-11 02:19:58 +04:00
|
|
|
|
; 㤠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD> <EFBFBD> 2 <EFBFBD>⠯<EFBFBD>:
|
2012-06-05 19:33:54 +04:00
|
|
|
|
; 1) <EFBFBD>饬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ॢ<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㤠<EFBFBD>塞<EFBFBD><EFBFBD> 㧥<EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>㭪樨)
|
2012-06-11 02:19:58 +04:00
|
|
|
|
; 2) 㤠<EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD><EFBFBD>
|
2012-06-05 19:33:54 +04:00
|
|
|
|
align 4
|
|
|
|
|
proc buf2d_vox_obj_delete_node, v_obj:dword,coord_x:dword,coord_y:dword,\
|
|
|
|
|
coord_z:dword,k_scale:dword
|
|
|
|
|
pushad
|
|
|
|
|
locals
|
|
|
|
|
p_node dd 0 ;த<EFBFBD>⥫<EFBFBD>᪨<EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
endl
|
|
|
|
|
mov edi,[v_obj]
|
|
|
|
|
add edi,vox_offs_data
|
|
|
|
|
mov esi,[k_scale]
|
|
|
|
|
cmp esi,1
|
|
|
|
|
jl .end_2
|
|
|
|
|
; *** (1) ***
|
|
|
|
|
.found:
|
|
|
|
|
stdcall vox_obj_get_node_position, [v_obj],[coord_x],[coord_y],[coord_z],esi
|
|
|
|
|
movzx bx,byte[edi+3]
|
|
|
|
|
mov [p_node],edi
|
|
|
|
|
add edi,4
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_1
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
cld
|
2012-06-11 02:19:58 +04:00
|
|
|
|
@@: ;横<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ய<EFBFBD>᪠ <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ쥢 <EFBFBD> 㧫<EFBFBD>
|
2012-06-05 19:33:54 +04:00
|
|
|
|
bt bx,0 ;<EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
jnc .end_0
|
|
|
|
|
xor eax,eax
|
|
|
|
|
stdcall vox_obj_rec0 ;<EFBFBD> eax <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢨
|
|
|
|
|
.end_0:
|
|
|
|
|
shr bx,1
|
|
|
|
|
loop @b
|
|
|
|
|
.end_1:
|
|
|
|
|
bt bx,0
|
|
|
|
|
jnc .end_2 ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dec esi
|
|
|
|
|
cmp esi,0
|
|
|
|
|
jg .found
|
|
|
|
|
|
|
|
|
|
; *** (2) ***
|
|
|
|
|
;delete
|
|
|
|
|
stdcall vox_obj_del_nodes_mem, [v_obj],edi ;<EFBFBD>㦠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ⮬, <EFBFBD><EFBFBD><EFBFBD> 㤠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
mov ebx,[p_node]
|
|
|
|
|
|
|
|
|
|
stdcall vox_obj_get_node_bit_mask, [v_obj],[coord_x],[coord_y],[coord_z],esi
|
|
|
|
|
xor byte[ebx+3],al
|
|
|
|
|
|
|
|
|
|
.end_2:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2012-07-19 23:06:06 +04:00
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD> <EFBFBD> 2 <EFBFBD>⠯<EFBFBD>:
|
|
|
|
|
; 1) <EFBFBD>饬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ॢ<EFBFBD>, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD> (<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>㭪樨)
|
|
|
|
|
; 2) <EFBFBD><EFBFBD>६ 梥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD>
|
|
|
|
|
;output:
|
|
|
|
|
; eax - 梥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᥫ<EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc buf2d_vox_obj_node_get_color, v_obj:dword,coord_x:dword,coord_y:dword,\
|
|
|
|
|
coord_z:dword,k_scale:dword
|
|
|
|
|
push ebx ecx edi esi
|
|
|
|
|
locals
|
|
|
|
|
p_node dd 0 ;த<EFBFBD>⥫<EFBFBD>᪨<EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
endl
|
|
|
|
|
mov edi,[v_obj]
|
|
|
|
|
add edi,vox_offs_data
|
|
|
|
|
mov esi,[k_scale]
|
|
|
|
|
cmp esi,1
|
|
|
|
|
jl .end_2
|
|
|
|
|
; *** (1) ***
|
|
|
|
|
.found:
|
|
|
|
|
stdcall vox_obj_get_node_position, [v_obj],[coord_x],[coord_y],[coord_z],esi
|
|
|
|
|
movzx bx,byte[edi+3]
|
|
|
|
|
mov [p_node],edi
|
|
|
|
|
add edi,4
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_1
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
cld
|
|
|
|
|
@@: ;横<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ய<EFBFBD>᪠ <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ쥢 <EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
bt bx,0 ;<EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
jnc .end_0
|
|
|
|
|
xor eax,eax
|
|
|
|
|
stdcall vox_obj_rec0 ;<EFBFBD> eax <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>୨<EFBFBD> 㧫<EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢨
|
|
|
|
|
.end_0:
|
|
|
|
|
shr bx,1
|
|
|
|
|
loop @b
|
|
|
|
|
.end_1:
|
|
|
|
|
bt bx,0
|
|
|
|
|
jnc .end_2 ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ॢ<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dec esi
|
|
|
|
|
cmp esi,0
|
|
|
|
|
jg .found
|
|
|
|
|
|
|
|
|
|
; *** (2) ***
|
|
|
|
|
;get
|
|
|
|
|
mov eax,dword[edi]
|
|
|
|
|
and eax,0xffffff
|
|
|
|
|
jmp .end_3
|
|
|
|
|
.end_2:
|
|
|
|
|
mov eax,1 shl 31
|
|
|
|
|
.end_3:
|
|
|
|
|
pop esi edi ecx ebx
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2012-06-05 19:33:54 +04:00
|
|
|
|
; ᤢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD>
|
|
|
|
|
;input:
|
|
|
|
|
; p_insert - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD>
|
|
|
|
|
; count - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD>⠢<EFBFBD>塞<EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_add_nodes_mem uses eax ecx edi esi, v_obj:dword,p_insert:dword,count:dword
|
|
|
|
|
stdcall buf2d_vox_obj_get_size,[v_obj]
|
|
|
|
|
mov esi,[v_obj]
|
|
|
|
|
add esi,eax ;esi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
mov edi,[count]
|
|
|
|
|
shl edi,2
|
|
|
|
|
add edi,esi ;edi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>騩 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
mov ecx,esi
|
|
|
|
|
sub ecx,[p_insert]
|
|
|
|
|
shr ecx,2 ;ecx - <EFBFBD><EFBFBD> 横<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
sub esi,4 ;esi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
sub edi,4 ;edi - 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>騩 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
std
|
|
|
|
|
rep movsd ;ᤢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; p_insert - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ...
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_del_nodes_mem uses eax ecx edi esi, v_obj:dword,p_insert:dword
|
|
|
|
|
stdcall buf2d_vox_obj_get_size,[v_obj]
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
mov edi,[p_insert]
|
|
|
|
|
add ecx,[v_obj]
|
|
|
|
|
sub ecx,edi
|
|
|
|
|
xor eax,eax
|
|
|
|
|
stdcall vox_obj_rec0
|
|
|
|
|
shr ecx,2
|
|
|
|
|
sub ecx,eax ;ecx - <EFBFBD><EFBFBD> 横<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
shl eax,2
|
|
|
|
|
add eax,[p_insert]
|
|
|
|
|
mov esi,eax
|
|
|
|
|
mov edi,[p_insert]
|
|
|
|
|
cld
|
|
|
|
|
rep movsd ;ᤢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2012-06-11 02:19:58 +04:00
|
|
|
|
;???
|
2012-06-05 19:33:54 +04:00
|
|
|
|
; <EFBFBD><EFBFBD>।<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 㧫<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ॢ<EFBFBD> (<EFBFBD><EFBFBD> 0 <EFBFBD><EFBFBD> 7)
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_get_node_position uses ebx ecx edi, v_obj:dword,\
|
|
|
|
|
coord_x:dword,coord_y:dword,coord_z:dword,k_scale:dword
|
|
|
|
|
mov ecx,[k_scale]
|
|
|
|
|
dec ecx
|
|
|
|
|
mov eax,[coord_x]
|
|
|
|
|
mov ebx,[coord_y]
|
|
|
|
|
mov edi,[coord_z]
|
|
|
|
|
cmp ecx,1
|
|
|
|
|
jl .end_0
|
|
|
|
|
shr eax,cl
|
|
|
|
|
shr ebx,cl
|
|
|
|
|
shr edi,cl
|
|
|
|
|
.end_0:
|
|
|
|
|
and eax,1
|
|
|
|
|
bt ebx,0
|
|
|
|
|
jnc @f
|
|
|
|
|
bts eax,1
|
|
|
|
|
@@:
|
|
|
|
|
bt edi,0
|
|
|
|
|
jnc @f
|
|
|
|
|
bts eax,2
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
mov edi,[v_obj]
|
|
|
|
|
add edi,vox_offs_tree_table
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,byte[edi]
|
|
|
|
|
je @f
|
|
|
|
|
inc edi
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
sub edi,[v_obj]
|
|
|
|
|
sub edi,vox_offs_tree_table
|
|
|
|
|
mov eax,edi
|
|
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;output:
|
|
|
|
|
; eax - 1,2,4,8,16, ... ,128
|
|
|
|
|
align 4
|
|
|
|
|
proc vox_obj_get_node_bit_mask uses ebx ecx edi, v_obj:dword,\
|
|
|
|
|
coord_x:dword,coord_y:dword,coord_z:dword,k_scale:dword
|
|
|
|
|
mov ecx,[k_scale]
|
|
|
|
|
dec ecx
|
|
|
|
|
mov eax,[coord_x]
|
|
|
|
|
mov ebx,[coord_y]
|
|
|
|
|
mov edi,[coord_z]
|
|
|
|
|
cmp ecx,1
|
|
|
|
|
jl .end_0
|
|
|
|
|
shr eax,cl
|
|
|
|
|
shr ebx,cl
|
|
|
|
|
shr edi,cl
|
|
|
|
|
.end_0:
|
|
|
|
|
and eax,1
|
|
|
|
|
bt ebx,0
|
|
|
|
|
jnc @f
|
|
|
|
|
bts eax,1
|
|
|
|
|
@@:
|
|
|
|
|
bt edi,0
|
|
|
|
|
jnc @f
|
|
|
|
|
bts eax,2
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
mov ecx,[v_obj]
|
|
|
|
|
add ecx,vox_offs_tree_table
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,byte[ecx]
|
|
|
|
|
je @f
|
|
|
|
|
inc ecx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
mov eax,1 ;<EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ࢮ<EFBFBD><EFBFBD>砫쭮<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
sub ecx,[v_obj]
|
|
|
|
|
sub ecx,vox_offs_tree_table
|
|
|
|
|
jz @f
|
|
|
|
|
shl eax,cl ;ᤢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;<EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
proc buf2d_draw_palete, buf:dword, coord_x:dword, coord_y:dword,\
|
|
|
|
|
cell_w:dword, cell_h:dword, colors_w:dword, colors:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov ebx,[coord_x]
|
|
|
|
|
mov edx,[coord_y]
|
|
|
|
|
mov ecx,[colors]
|
|
|
|
|
xor edi,edi
|
|
|
|
|
mov esi,[cell_h]
|
|
|
|
|
cld
|
|
|
|
|
.cycle_0:
|
|
|
|
|
stdcall get_palete_color, ecx,3
|
|
|
|
|
stdcall [buf2d_filled_rect_by_size], [buf], ebx,edx, [cell_w],esi,eax
|
|
|
|
|
inc edi
|
|
|
|
|
cmp edi,[colors_w]
|
|
|
|
|
jl @f
|
|
|
|
|
mov ebx,[coord_x]
|
|
|
|
|
sub ebx,[cell_w]
|
|
|
|
|
dec ebx
|
|
|
|
|
add edx,esi ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>祩<EFBFBD><EFBFBD>
|
|
|
|
|
inc edx ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>祩<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
xor edi,edi
|
|
|
|
|
@@:
|
|
|
|
|
add ebx,[cell_w]
|
|
|
|
|
inc ebx
|
|
|
|
|
loop .cycle_0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
;input:
|
|
|
|
|
; <EFBFBD> r = 1 <EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>頥<EFBFBD> 8 梥⮢, 2 - 64, 3 - 512
|
|
|
|
|
;output:
|
|
|
|
|
; eax - color
|
|
|
|
|
align 4
|
|
|
|
|
proc get_palete_color uses ebx ecx edx edi, ind:dword, r:dword
|
|
|
|
|
mov ecx,[r]
|
|
|
|
|
xor edi,edi
|
|
|
|
|
inc edi
|
|
|
|
|
|
|
|
|
|
mov ebx,[ind]
|
|
|
|
|
;b = b xor (b shr 1)
|
|
|
|
|
;<EFBFBD>८<EFBFBD>ࠧ㥬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥⮢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><EFBFBD>
|
|
|
|
|
mov eax,ebx
|
|
|
|
|
shr eax,1
|
|
|
|
|
xor ebx,eax
|
|
|
|
|
|
|
|
|
|
mov edx,ebx
|
|
|
|
|
shr edx,cl
|
|
|
|
|
mov eax,edx
|
|
|
|
|
shr eax,cl
|
|
|
|
|
|
|
|
|
|
mov ch,8
|
|
|
|
|
sub ch,cl
|
|
|
|
|
shr ecx,8
|
|
|
|
|
shl ebx,cl
|
|
|
|
|
shl edx,cl
|
|
|
|
|
shl eax,cl
|
|
|
|
|
|
|
|
|
|
shl edi,cl
|
|
|
|
|
dec edi ;edi - 1...1b
|
|
|
|
|
|
|
|
|
|
or ebx,edi
|
|
|
|
|
or edx,edi
|
|
|
|
|
or eax,edi
|
|
|
|
|
|
|
|
|
|
shl eax,8
|
|
|
|
|
mov al,dl
|
|
|
|
|
shl eax,8
|
|
|
|
|
mov al,bl
|
|
|
|
|
and eax,0xffffff
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|