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: 215
Location: %x
badc0de02 13 Mar 2014, 13:40
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: 339
Location: Asia, Singapore
sid123 13 Mar 2014, 13:48
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: 215
Location: %x
badc0de02 13 Mar 2014, 13:59
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: 3499
Location: Bulgaria
JohnFound 13 Mar 2014, 14:19
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 13 Mar 2014, 17:11
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: 215
Location: %x
badc0de02 13 Mar 2014, 20:46
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 13 Mar 2014, 20:52
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: 215
Location: %x
badc0de02 13 Mar 2014, 20:57
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 13 Mar 2014, 20:59
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: 215
Location: %x
badc0de02 13 Mar 2014, 21:37
added you
Post 13 Mar 2014, 21:37
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 14 Mar 2014, 09:10
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: 215
Location: %x
badc0de02 16 Mar 2014, 08:30
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: 339
Location: Asia, Singapore
sid123 17 Mar 2014, 01:43
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: 215
Location: %x
badc0de02 17 Mar 2014, 12:44
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.