flat assembler
Message board for the users of flat assembler.

Index > DOS > Execute FASM to compile a file

Author
Thread Post new topic Reply to topic
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
Hey guys,
ive bought the 86duino
on the 86duino runs dos and i want to create a program what reads serial input and execute a file. what i want to send are assembly intructions and save it to a file then compiles the file with fasm.

now is there my question how do i execute a file like fasm for dos with the program.

please help in advance.
i dont want any protocols, please send my a example source.


Last edited by badc0de02 on 13 Mar 2014, 14:00; edited 1 time in total
Post 13 Mar 2014, 13:40
View user's profile Send private message Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
sid123
fasm.exe file.asm
Wink
Post 13 Mar 2014, 13:48
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
sid i dont mean that
the program execute fasm to compile it atomaticly the file what i got over serial
Post 13 Mar 2014, 13:59
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
int $21, ah=$4b - Execute program.
Post 13 Mar 2014, 14:19
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
badc0de02,

As far as I get it, you need fasm to compile program that is coming through some kind of serial link, then somehow execute it? (pun intended Wink)

Another interpretation can be "save serial input, compile it with fasm, then run the result (before executing Wink)".

Please state clearly what do you want to do.
Post 13 Mar 2014, 17:11
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
baldr Arrow
i want to create a program that first read the serial input then save it to a file,
then i want that the program after them execute FASM to compile the recived file.
Post 13 Mar 2014, 20:46
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
badc0de02,

OK, that's clears much of the fog. Which part of the task you're having difficulties with?
Post 13 Mar 2014, 20:52
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
how to execute FASM (with parameter) in dos from a program
can you send me a exemple code?
Post 13 Mar 2014, 20:57
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
badc0de02,

Probably ICQ would be better? 281*42697
Post 13 Mar 2014, 20:59
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
added you
Post 13 Mar 2014, 21:37
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4225
Location: 2018
edfed
the arduino ide is not modular. you should use avrdude tool in command line to load the binary in your 86duino.

or start to develop with a non beginner platform Smile

arduino is cool cause you don't need to be expert to make it work, but if you're expert, you feel really frustrated by it's limitations.
Post 14 Mar 2014, 09:10
View user's profile Send private message Visit poster's website Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
edfed,
have a look at the 86duino
http://www.86duino.com/index.php?p=68
the processor is x86 architectured
and the 86duino ide compiles the c files with djgcc
on the 86duino runs dos
its not a similar atmel controler and does not work with avr-gcc
the 86duino it a devlopment board for a x86 processor
and with this can you make anything even run linux on the board
just imagine
the avr processor has limits on ram and flash you can add a sdcard over spi
but the little ram does still exist
Post 16 Mar 2014, 08:30
View user's profile Send private message Reply with quote
sid123



Joined: 30 Jul 2013
Posts: 340
Location: Asia, Singapore
sid123
Ah!
Got your problem!
You need to receive characters from serial, write it to a file, and tell FASM to compile it.
Right?
Post 17 Mar 2014, 01:43
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
sid123,

thanks for asking, i got already a solution for the problem
Post 17 Mar 2014, 12:44
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.