binary programming

This is a discussion on binary programming within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Does anyone or can anyone here program in Binary?...

  1. #1
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385

    binary programming

    Does anyone or can anyone here program in Binary?
    Monday - what a way to spend a seventh of your life

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    I could, on the right chip.... Why would you want to?

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> 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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i cannot think of any reason why anyone would want to program in binary - i was just curious if any does or can.
    Monday - what a way to spend a seventh of your life

  5. #5
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    I would like to learn, but i dont know where to start, i mean do you need some kind of 'binary compiler' or something?

  6. #6
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    >some kind of 'binary compiler' or something?

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

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> 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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays vs lists? And containers in general!
    By clegs in forum C++ Programming
    Replies: 22
    Last Post: 12-03-2007, 01:02 PM
  2. Replies: 0
    Last Post: 11-04-2006, 10:07 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21