Thread: Machine code, asm, poop

  1. #1
    Seņor Member
    Join Date
    Jan 2002

    Machine code, asm, poop

    Ok, C++ is pretty much an ASM translator. If that's wrong just ignore this. Then ASM is converted to machine code. Machine code tells computer to do its thing and everything runs (sometimes). But how was ASM created? How did people figure out what 1010101000101010100001 means to the computer? I've always sorta wondered how you'd make the first computer language. Anyone got an answer?

  2. #2
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Look into computer organization (or computer architecture). It's all combinations of on/off switches (millions of them). The ones and zeros tells which switches are on and off.
    Pretty incredible if you ask me. Thank God we don't have to do binary programming.
    Last edited by taylorguitarman; 04-02-2002 at 12:50 AM.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  3. #3
    Seņor Member
    Join Date
    Jan 2002
    That's my question. How do you get that into assembly? I don't like looking for things. That's what I have you people for .

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    >How do you get that into assembly?
    Assembly is simply a series of symbols that represent addresses and instruction sets that a person can understand, just like C. Consider the MOV instruction; this is a symbol for a binary code that tells the microprocessor to move the contents of one register to another. You can consider it to be something like #define:

    #define MOV 00110111

    >I've always sorta wondered how you'd make the first computer language
    The same way you make a modern programming language, by defining new symbols that call lower level symbols until you get to machine readable instructions. The first programming language was binary. Assembly was the created with binary because binary was too cryptic and difficult to work with for us lowly humans.

    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-02-2008, 10:00 PM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM
  3. C# Compiled to Machine Code
    By FwyWice in forum C# Programming
    Replies: 1
    Last Post: 12-06-2002, 04:22 AM
  4. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Linux Programming
    Replies: 0
    Last Post: 10-14-2002, 01:30 PM