From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Embedded programming Date: Wed, 03 May 2000 07:54:11 +0400 Organization: MTU-Intel ISP Lines: 43 Message-ID: <390FA2E3.9944E12D@mtu-net.ru> References: <390f923f$0$91337$61169c8d AT news DOT thebestisp DOT com> NNTP-Posting-Host: ppp107-55.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 957326530 87662 212.188.107.55 (3 May 2000 04:02:10 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 3 May 2000 04:02:10 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Start with DJGPP/NASM and my OSLoader. OSLoader can boot from a disk (any MS FAT12/16 disk), setup PMode and run your 32-bit program made with DJGPP & NASM. Take a look at my homepage. I belive you could just modify a little OSLoader so that it load particular binaryfile but not waite for its name from the keyboard. -- Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Dave White wrote: > > Eli Zaretskii wrote in message > news:Pine DOT SUN DOT 3 DOT 91 DOT 1000502144857 DOT 22132O-100000 AT is... > > > Surely, you cannot be positive these scripts will do what the original > > poster needs? > > Let me explain what I'm trying to do. I've built an embedded control > project, based on a standard PII motherboard, but with no video, keyboard, > disks, etc. I need to write a small, fairly simple, application which will > control my add-in cards (ADC/DAC/relay, etc.) and buffer incoming data for > transfer to a 'real' PC. I won't need any of the standard library routines, > not evem malloc - being an embedded system, I can control all memory use and > access fixed location buffers. All I'm really trying to do is to use C (not > even C++) as a high level assembler - easier to debug than plain assembly. > I'll be writing all my own I/O functions and memory handling routines. > > Ultimately what I want to is create a binary image that can either be loaded > from EPROM, or from a boot floppy, switch into protected mode, set up a > couple of interrupt handlers, then call my C _main function. I have pulled > together a lot of information from the web, but much of this relates to flat > real mode, rather than full protected mode. FRM is brain dead on a PII so > I'd rather use full PM. I have Borland C++ 4.5, Borland BCC32 command line, > TASM 5.x, MASM 6.1, djgpp, NASM, etc. but have no simple way to start. I'm > pretty sure that the complexity of the task I'm trying to accomplish isn't > too hard, but the wealth of information is confusing.