Message board for the users of flat assembler.
> MenuetOS > Function 58 - run programms
Fagotus 26 Jul 2004, 05:03
I need help in 58th func. So the standart RUN func. is:
dd 16 ; - exec prg
dd 0x0 ; - params
;=======end of fileinfo
But I need to execute programm, but the path is integer - for example:
path_to_prg db ’/hd/1/meos/apps/fire’
and params too:
parametr dw 0
So the quastion is: What changes do I have to make to fileinfo to make it work (and do I have to add ",0" to the end of path? how?)
|26 Jul 2004, 05:03||
Fagotus 26 Jul 2004, 05:09
Oh, and another quastion
how can i read data from file - string one to integer1 - string two to integer2 ??? I know how to open file and put data to memory, but others?
|26 Jul 2004, 05:09||
DennisCGc 26 Jul 2004, 11:00
The path isn't an integer, but a string.....
API reference wrote:
According to this, it SHOULD work
See this for more information : http://www.menuetos.org/www/eng/sysfuncs.txt
|26 Jul 2004, 11:00||
SPTH 27 Jul 2004, 05:50
Maybe you have the same problem as me!
check out is that one works:
mov eax, 58 mov ebx, fileinfo int 0x40 fileinfo: dd 0 ; 0=READ (delete/append) dd 0x0 ; 512 block to read 0+ dd 0x16 ; blocks to read (/bytes to write/append) dd 0x20000 ; return data pointer dd 0x10000 ; work area for os - 16384 bytes db '/HARDDISK/FIRST',0 ; ASCIIZ dir & filename
then you check the values at 0x20000 (for instands via a text-box), if there are strange signs, you also have 'my' bug
|27 Jul 2004, 05:50||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.