To any programming gurus familiar with machine code

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Hamel
Sith Marauder
Posts: 3842
Joined: 2003-02-06 10:34am
Contact:

To any programming gurus familiar with machine code

Post by Hamel »

Have you or have you seen someone program in machine language? I'm not talking assembly, I'm talking the real deal, the lowest level you can go. Do you just punch in 1s and 0s or the hex equivalent in a manner the machine will recognize? How would the machine recognize it in the first place? Is it possible to machine code through programs or do you physically need to fiddle with the CPU itself, or do it through some method that is radically different from higher languages?
"Right now we can tell you a report was filed by the family of a 12 year old boy yesterday afternoon alleging Mr. Michael Jackson of criminal activity. A search warrant has been filed and that search is currently taking place. Mr. Jackson has not been charged with any crime. We cannot specifically address the content of the police report as it is confidential information at the present time, however, we can confirm that Mr. Jackson forced the boy to listen to the Howard Stern show and watch the movie Private Parts over and over again."
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

The computer was designed to be able to read those ones and zeros (often via punch-card input). You were still programming, just without the benefit of many high-level constructs that today we take for granted. You also had to do your own low-level memory management (no, malloc and free do not count)

Other computers had you flip switches and then press a button for every line of machine code (IIRC, the Altair did that).
User avatar
Antares
Padawan Learner
Posts: 489
Joined: 2003-12-04 03:13am

Post by Antares »

Normally every binary can be translated to at least some form of assembler,
simply because every binary encodes rules and rules can be decrypted.

The worst thing i ever did was writting a programm that "infects" *.exe files and alters the entry point. For testing i added some seperatly written code to my test exe.

100$ question :D
Does somebody know what this is and what is it for (intel asm)?

558BEC
Post Reply