forked from KolibriOS/kolibrios
use packed file
git-svn-id: svn://kolibrios.org@7026 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
58ad913c04
commit
b42af811f2
Binary file not shown.
@ -34,50 +34,58 @@ START:
|
|||||||
;ˆ¨æ¨ «¨§¨à㥬 ªãçã
|
;ˆ¨æ¨ «¨§¨à㥬 ªãçã
|
||||||
mcall 68,11
|
mcall 68,11
|
||||||
; call get_screen_params
|
; call get_screen_params
|
||||||
; mov eax,0x0000001C
|
mov eax,params
|
||||||
; cmp eax,0x0
|
cmp [eax],byte 0x0
|
||||||
; je start_with_internal_text ; <20> à ¬¥âàë ¥ § ¤ ë
|
je start_with_internal_text ; <20> à ¬¥âàë ¥ § ¤ ë
|
||||||
|
|
||||||
; <20> à ¬¥âà § ¤ ! <20>ëâ ¥¬áï í⨬ ¢®á¯®«ì§®¢ âìáï
|
; <20> à ¬¥âà § ¤ ! <20>ëâ ¥¬áï í⨬ ¢®á¯®«ì§®¢ âìáï
|
||||||
; <20>¥®¡å®¤¨¬® ®¯à¥¤¥«¨âì à §¬¥à ä ©« ... ‚¯¥àñ¤!!!
|
; <20>¥®¡å®¤¨¬® ®¯à¥¤¥«¨âì à §¬¥à ä ©« ... ‚¯¥àñ¤!!!
|
||||||
mov eax,5
|
; mov eax,5
|
||||||
mov [arg1],eax
|
; mov [arg1],eax
|
||||||
xor eax,eax
|
; xor eax,eax
|
||||||
mov [arg2],eax
|
; mov [arg2],eax
|
||||||
mov [arg3],eax
|
; mov [arg3],eax
|
||||||
mov [arg4],eax
|
; mov [arg4],eax
|
||||||
mov eax,filedatastruct
|
; mov eax,filedatastruct
|
||||||
mov [arg5],eax
|
; mov [arg5],eax
|
||||||
mov eax,[0x0000001C]
|
; mov eax,[0x0000001C]
|
||||||
mov [arg7],eax
|
; mov [arg7],eax
|
||||||
mcall 70,filestruct
|
; mcall 70,filestruct
|
||||||
|
; test eax,eax
|
||||||
|
; jne start_with_internal_text ;Žè¨¡ª
|
||||||
|
; mov eax, dword [size]
|
||||||
|
; mov [filesize], eax ;⥯¥àì à §¬¥à ä ©« ã á ¢ filesize
|
||||||
|
;;‚뤥«ï¥¬ ¡«®ª ¯ ¬ï⨠¯®¤ ä ©«
|
||||||
|
; mov ecx, [filesize]
|
||||||
|
; inc ecx ;‚뤥«¨¬ ¤®¯®«¨â¥«ì® ®¤¨ ¡ ©â ¤«ï ⮣®, çâ®¡ë ¤®¡ ¢¨âì 0xFF
|
||||||
|
; ;§ é¨â ®â "¡¨âëå" KLA-ä ©«®¢
|
||||||
|
; mcall 68,12
|
||||||
|
; mov [datastart], eax ;‚ ¯¥à¥¬¥®© „ â ‘â àâ ⥯¥àì 室¨âáï 㪠§ ⥫ì
|
||||||
|
; add eax, [filesize]
|
||||||
|
; mov bh, 0xFF
|
||||||
|
; mov [eax], bh
|
||||||
|
;;‘®¡á⢥®, áç¨âë¢ ¥¬ ä ©« ¢ ¯ ¬ïâì
|
||||||
|
; xor eax,eax
|
||||||
|
; mov [arg1],eax ;<3B>®¬¥à ¯®¤äãªæ¨¨
|
||||||
|
; mov [arg2],eax ;‘¬¥é¥¨¥ ¢ ä ©«¥
|
||||||
|
; mov [arg3],eax ;‘â à訩 dword ᬥ饨ï
|
||||||
|
; mov eax,[filesize]
|
||||||
|
; mov [arg4],eax ;<3B> §¬¥à ä ©«
|
||||||
|
; mov eax,[datastart]
|
||||||
|
; mov [arg5],eax ;“ª § â¥«ì ¤ ë¥
|
||||||
|
; mov eax,par
|
||||||
|
; mov [arg7],eax ;“ª § ⥫ì ASCIIZ-áâபã
|
||||||
|
; mcall 70,filestruct
|
||||||
|
|
||||||
|
mov ecx, eax
|
||||||
|
mov eax, 68
|
||||||
|
mov ebx, 27
|
||||||
|
int 64
|
||||||
|
mov [datastart], eax
|
||||||
|
mov [filesize], edx
|
||||||
|
|
||||||
test eax,eax
|
test eax,eax
|
||||||
jne start_with_internal_text ;Žè¨¡ª
|
jnz initialize_variables
|
||||||
mov eax, dword [size]
|
|
||||||
mov [filesize], eax ;⥯¥àì à §¬¥à ä ©« ã á ¢ filesize
|
|
||||||
;‚뤥«ï¥¬ ¡«®ª ¯ ¬ï⨠¯®¤ ä ©«
|
|
||||||
mov ecx, [filesize]
|
|
||||||
inc ecx ;‚뤥«¨¬ ¤®¯®«¨â¥«ì® ®¤¨ ¡ ©â ¤«ï ⮣®, çâ®¡ë ¤®¡ ¢¨âì 0xFF
|
|
||||||
;§ é¨â ®â "¡¨âëå" KLA-ä ©«®¢
|
|
||||||
mcall 68,12
|
|
||||||
mov [datastart], eax ;‚ ¯¥à¥¬¥®© „ â ‘â àâ ⥯¥àì 室¨âáï 㪠§ ⥫ì
|
|
||||||
add eax, [filesize]
|
|
||||||
mov bh, 0xFF
|
|
||||||
mov [eax], bh
|
|
||||||
;‘®¡á⢥®, áç¨âë¢ ¥¬ ä ©« ¢ ¯ ¬ïâì
|
|
||||||
xor eax,eax
|
|
||||||
mov [arg1],eax ;<3B>®¬¥à ¯®¤äãªæ¨¨
|
|
||||||
mov [arg2],eax ;‘¬¥é¥¨¥ ¢ ä ©«¥
|
|
||||||
mov [arg3],eax ;‘â à訩 dword ᬥ饨ï
|
|
||||||
mov eax,[filesize]
|
|
||||||
mov [arg4],eax ;<3B> §¬¥à ä ©«
|
|
||||||
mov eax,[datastart]
|
|
||||||
mov [arg5],eax ;“ª § â¥«ì ¤ ë¥
|
|
||||||
mov eax,par
|
|
||||||
mov [arg7],eax ;“ª § ⥫ì ASCIIZ-áâபã
|
|
||||||
mcall 70,filestruct
|
|
||||||
test eax,eax
|
|
||||||
je initialize_variables
|
|
||||||
start_with_internal_text:
|
start_with_internal_text:
|
||||||
mov edx, string
|
mov edx, string
|
||||||
mov [datastart], edx
|
mov [datastart], edx
|
||||||
|
Loading…
Reference in New Issue
Block a user