![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
Hi, I'm using emu8086 as my assembler program and I need to know, how do you load a C program in assembler? cos im making a bootable C program and im making it in assembler, how do I do it in emu8086?
![]() |
|
|
|
|
|
#2 |
|
Professional Programmer
|
turn the .c file into a .S file with gcc -S filename.c and then load it into your asembler.
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
you also can use inline assembly, to put lines of assembly code between your c code.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
and how do I load an S file in assembler, sorry, i'm a newbie to assembler
|
|
|
|
|
|
#5 |
|
Professional Programmer
|
i have no idea, read the help files that came with your assembler.
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
wait, I need to know how to load an .exe file in assembler that was made in C
|
|
|
|
|
|
#7 |
|
Professional Programmer
|
oh, you want to DEassemble. you'll need some third party software for that, search google.
|
|
|
|
|
|
#8 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
no, I want to leave the exe file made in C intact, but load it from assembler, is that what ya mean?
|
|
|
|
|
|
#9 |
|
Professional Programmer
|
and what would you want to accomplish doing that?
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
to load an exe, made in C from assembler
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|