4

I came across an article a long while ago on how to write out a .com file directly without using any external tools. The method was to basically copy con myfile.com and then hit ctrl+alt+number for each instruction.

I've lost the url for the guide... Google isn't helping much either.

If you have the link, please could you post it.

2
  • 1
    I know I probably shouldn't ask, but why?? Do you miss entering bootstrapping code on your IMSAI with the front panel toggle switches? Commented Mar 1, 2010 at 8:34
  • 2
    I don't have a good reason :) . It just seemed like an interesting thing to learn. Commented Mar 1, 2010 at 9:25

5 Answers 5

5

You don't need an article for it; what you've described is the entire tail end of the process. Just make sure you use the keypad numbers and not the toprow numbers.

For the beginning, you'll need to hand-assemble the program. Unless you're into pain I recommend you find yourself an actual assembler or compiler instead.

Sign up to request clarification or add additional context in comments.

1 Comment

Well, it's just a nice 'party trick'... If I'm not able to find the answer in another couple of days, I'll just mark your answer as accepted :- ).
2

Insipred by Ignacio Vazquez-Abrams I found this link, which uses ECHO in stead of COPY CON.

Comments

1

There's also debug.exe that comes with most versions of Windows before Vista. You can use it as an assembler, disassembler, debugger, etc. and also code COM executables with x86 assembly with it. It may or may not fit your definition of a "compiler".

Comments

1

The article Legion2000 SR iqlord's eXtreme coding describes the process, and has a list of the alt codes with related asm and hex values.

The article that got me interested in this topic was Bootstrapping a simple compiler from nothing. It looks like an interesting challenge, but I haven't tried it myself.

Scheme from Scratch is an example of someone working on the challenge of bootstrapping a compiler.

Comments

0

This is doable because .com programs aren't relocatable, so they don't need relocation tables, so the header is a fixed size. Not true for .exe files. I don't recall the header details off the top of my head (believe it or not, I used to!), but if you dig up one of the bibles of the old religion like "Undocumented DOS" or anything that talks about writing TSRs those should have info about the .com header.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.