Path: csiph.com!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: alt.os.development Subject: Re: What form of executable or load module for your OS? Date: Fri, 03 Jul 2015 17:56:28 -0400 Organization: Aioe.org NNTP Server Lines: 29 Message-ID: References: <5bb535cc-0995-4fdd-ae16-a1217c4b8e92@googlegroups.com> <75acded2-9f64-4d9f-81c2-7ec73fd72e01@googlegroups.com> <1687b850-3c16-44ec-9bd9-4eb0dc2a201b@googlegroups.com> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: aioe.org alt.os.development:8286 On Fri, 03 Jul 2015 17:45:01 -0400, James Harris wrote: >> Just how >> many more advanced x86 instructions could Alexei really use? ... >> The basic x86 instructions were set before the 386. > > I don't know what he emits that is not 8086 compatible. Could it be more > than just a few instructions? Off the top of my head > > pusha/popa > shifts and rotates immediate by more than 1 > push immediate > registers wider than 16 bits > > You could probably add more. None of those are available to 8086 code. If he procedurized the code, i.e., calls pusha() to emit "pusha", then it's an easy change. If it's a switch and bunch of printf()'s, it's slightly more work. I.e., you won't know how easy it is to modify SmallerC until you look at the code. Does BCC emit NASM? Having access to NASM's macro pre-processor could be worth the effort. Rod Pemberton -- Tolerance and socialism attracts intolerance and terrorism. See: France, United Kingdom, Germany, Denmark, Belgium, Netherlands, ...