View Full Version : binary programming

01-10-2002, 12:40 PM
Does anyone or can anyone here program in Binary?

01-10-2002, 12:44 PM
I could, on the right chip.... Why would you want to?

01-10-2002, 12:56 PM
>>> can anyone here program in Binary

I have not needed to program in binary for a great many years. A couple of machines I have used required a bootstrap to be entered in binary, (DEC PDP-8 using on/off switches on the front panel and a Gould-SEL32/77+ hex via a 16 key keyboard). I also learnt Z80 programming on a development board with no backing store, (so every power on meant typing your entire program in from scratch!), and a simple 16 key keyboard.

>>> Why would you want to?

That's a good question.

01-10-2002, 04:05 PM
i cannot think of any reason why anyone would want to program in binary - i was just curious if any does or can.

01-10-2002, 05:00 PM
I would like to learn, but i dont know where to start, i mean do you need some kind of 'binary compiler' or something?

01-11-2002, 07:56 AM
>some kind of 'binary compiler' or something?

If you actually were doing it in binary, there'd be no need for a compiler.

01-11-2002, 09:58 AM
>>> there'd be no need for a compiler

Right. You need only use a hex, (or binary), editor, and then find some way of getting it's start address into the program counter register.

On some of our embedded systems, we take the object from the compiler, (which is relocatable object of course), then run it through a little utility program which "locates" it, i.e. it turns all of the "base + offset" values into actual numbers. We then blow that into a prom and set the CPU's restart vector to the base address of the, now located, code in the prom - easy.