Thread: machine language

  1. #1
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218

    machine language

    writing in machine contary to what i thought is not like an epic
    coding.
    machine language takes almost the same number of lines as
    asm. im gone start learning machine.

    di need a compiler to compile machine to machine?seriously
    where do i start?





    in C/C++ :
    ----------
    a=b+10;


    in ASM will become something like this :
    ----------------------------------------

    MOV eax, dword ptr [0012ab2a] ;




    ADD eax, 0x0A

    MOV dword ptr [0012ab34], eax





    in Machin-Language it will become something like this :
    -----------------------------------------------------------------

    A1.2A.AB.12.00
    83.C0.0A
    A3.34.AB.12.00

    which is stored like this into the memory :

    A1.2A.AB.12.00.83.C0.0A.A3.34.AB.12.00.:
    Last edited by SAMSAM; 03-11-2003 at 03:58 PM.

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    There was an extensive discussion on this topic not too long ago, if memory servs the original poster was DavidP.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    70
    You cant write a .COM in any text editor, notepad adds CR LF's so it screws the prog, I beleive edit.com has a binary option tho.. I wrote a "Hex Compiler" once, it just goes through converting hex digits into there character (the machine sees every thing as binary, so you convert whatever number type your using into a character and the machine reads it) If you really want to get in on Low-Level stuff (I suggest you do, dispite what many say) do a searcxh for DEBUG.COM or DEBUG.EXE on your comp (should be there) theres plenty of tutorials for it aswell.
    "...since anyone who is anyone knows C..." -Peter Cellik

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You can using any of the myriad hex editors around. Browse Download.
    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. d programming language - a better c++?
    By kypronite in forum Tech Board
    Replies: 12
    Last Post: 02-28-2011, 02:55 AM
  2. The value of learning a new programming language
    By h3ro in forum General Discussions
    Replies: 21
    Last Post: 06-13-2009, 01:48 AM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  5. Enough language discussions.
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 06-13-2004, 09:59 AM