Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - DMC & Assembler
Hi, I'm playing around with some boot-sector code. All the stuff I found so far use NASM and some tools from a guy named John Fine to get the correct binary. I'm sure this can be done with DMC as well. Here are some questions: 1. DMC calls MASM when seeing inline assembler. Can this be switched to NASM? As the assembler formats of MASM and NASM don't seem to be compatible. 2. How can I create a simple binary file with a start address of 0x7c00. I tried to use: link /binary:0x7c00 bootf.obj but got this error message. Note the obj-file was created with NASM. OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved OPTLINK : Warning 134: No Start Address bootf.obj(bootf) Warning 47: Below 100H Cannot Be Initialized I would like to use the DMC tools for bootstrapping an own bootsector and a mini console. Thanks. -- Robert M. Münch IT & Management Freelancer Mobile: +49 (0)177 2452 802 Fax : +49 (0)721 8408 9112 Web : http://www.robertmuench.de Jul 10 2002
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:aghkfh$1fhp$1 digitaldaemon.com...Hi, I'm playing around with some boot-sector code. All the stuff I found Jul 10 2002
"Walter" <walter digitalmars.com> schrieb im Newsbeitrag news:aghpm8$1kt7$1 digitaldaemon.com...Just run NASM separately. No need to run it via the DMC shell. Jul 11 2002
I'm afraid that the linker probably isn't going to work for your project. It is designed to create dos/windows executables, not rom images. "Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:agjgb0$bpr$1 digitaldaemon.com..."Walter" <walter digitalmars.com> schrieb im Newsbeitrag news:aghpm8$1kt7$1 digitaldaemon.com...Just run NASM separately. No need to run it via the DMC shell. Jul 11 2002
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:aghkfh$1fhp$1 digitaldaemon.com...Hi, I'm playing around with some boot-sector code. All the stuff I found Jul 10 2002
"V. Krishnakumar" <lvimala eth.net> schrieb im Newsbeitrag news:agio41$2icq$1 digitaldaemon.com...You must be using his JLoc linker/loader. Jul 11 2002
|