Jump to content
  • Advertisement
Sign in to follow this  
The Najdorf

I' ve written some machine code: how do I execute it?

This topic is 4906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I,ve written this machine code: 01010001010110101001001001000100110100010010101010010010101001010011011001010101010 How do I make the processor run it? Will it make something cool? EDIT: seriously, is there a way of executing it without using a compiler? [Edited by - The Najdorf on March 8, 2005 11:53:08 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Troll

Share this post


Link to post
Share on other sites
No, sorry, that was meant to be a bit ironic (wasnt it funny? I guess not since my rating dropped, people here lack humor, lol)

But the question is serious. If I really wanted to execute this stuff, isnt there a way without coding it in assembly then compiling it?

Share this post


Link to post
Share on other sites
Quote:
Original post by The Najdorf
But the question is serious. If I really wanted to execute this stuff, isnt there a way without coding it in assembly then compiling it?


Convert it into hex code then type it into DEBUG?

Share this post


Link to post
Share on other sites
Copy and paste that into a file and give it a COM extension. It will get executed, and probably generate an illegal instruction exception, but it will get executed.

Share this post


Link to post
Share on other sites
Quote:
Original post by benryves
Quote:
Original post by The Najdorf
But the question is serious. If I really wanted to execute this stuff, isnt there a way without coding it in assembly then compiling it?


Convert it into hex code then type it into DEBUG?


To clarify, reach DEBUG by running the command prompt and typing in DEBUG.

Share this post


Link to post
Share on other sites
Hey, thx.

I just tried the .com extension, then also the .exe extension, and it works! I mean, it gives an error, but it works! Actually I dont know if it anything with the bits I gave him. Anyone has a sequence of 1 and 0 that actually does something if we change the extension?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by The Najdorf
No, sorry, that was meant to be a bit ironic (wasnt it funny? I guess not since my rating dropped, people here lack humor, lol)

But the question is serious. If I really wanted to execute this stuff, isnt there a way without coding it in assembly then compiling it?



Hexedit an EXE file ???


I think you can get TASM Turbo assembler (Borlands) somewhere on the web for free.


Sorry, but you still dont come across as serious.


Long ago you could put hex code into a file and execute it (that was in the Z80 days), but why anyone would want to enter it that way now (instead of as ASM) ?????

Share this post


Link to post
Share on other sites
A 64 byte tunnel demo:

101100000001001111110101010000101100110100010000011
010000000000010100000000001111111011111100011010000
000000000111111000000100010001110011110111011101000
000110011011000000011001101111000000100110111110001
111100101101100000100000000010000111000001110011000
111000001110111110000011111011000110010000011000111
101011100100101101100111001001011101011110100011011
110110000011101100111111010110110000011110011011111
000001111101111101000110000000001101100111110011110
101101001000100001100100001111010101011101011110010
10

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!