Yuku free message boards
Username or E-mail:
Password:
Forgot
Password?
Sign Up
Grab the Yuku app
Search:
MenuetOS
menuetos
>
32bit - MenuetOS
>
application path
0 Points
Search this Topic:
Add Reply
New Topic
New Poll
Forum Jump
64bit - MenuetOS
64bit - Projects
64bit - Hardware
32bit - MenuetOS
32bit - Kernel
32bit - Applications
Help
Heap
<< Previous Topic
Next Topic >>
Re: application path
Author
Comment
profkid
#1
[-]
Posts
: 210
Jul 3 05 4:38 PM
Reply
Quote
More
My Recent Posts
this is how jpegview uses param
CODE
memsize=20000h
org 0
PARAMS = memsize - 1024
use32
db 'MENUET01' ; 8 byte id
dd 0x01 ; header version
dd START ; start of code
dd I_END ; size of image
dd memsize ; memory for app
dd memsize - 1024 ; esp
dd PARAMS , 0x0 ; I_Param , I_Icon
START: ; start of execution
cmp [PARAMS], byte 0
jne check_parameters
........
check_parameters:
cmp [PARAMS], dword "BOOT"; received BOOT parameter -> goto handler
je boot_set_background
mov edi, name_string ; clear string with file name
mov al, 0
mov ecx, 100
rep stosb
mov ecx, 100 ; calculate length of parameter string
mov edi, PARAMS
repne scasb
sub edi, PARAMS
mov ecx, edi
mov esi, PARAMS ; copy parameters to file name
mov edi, name_string
cld
rep movsb
jmp START.l1 ; return to beggining of the progra
<< Previous Topic
Next Topic >>
Add Reply
Forum Jump
64bit - MenuetOS
64bit - Projects
64bit - Hardware
32bit - MenuetOS
32bit - Kernel
32bit - Applications
Help
Heap
Share This
Email to Friend
del.icio.us
Digg it
Facebook
Blogger
Yahoo MyWeb
menuetos
>
32bit - MenuetOS
>
application path
Click to subscribe by RSS
Click to receive E-mail notifications of replies