A Conversation for Assembly Language

umm...i this might sound silly...

Post 1

Xordin the curious

i don't know too much about programming, but, if i wrote a
program completely in hexadecimal, would i need to compile it?

how would i run it?


umm...i this might sound silly...

Post 2

diego001

You don't need to compile this code in hexadecimal. What you need to do is get a debugger in whatever machine you're running (MS-DOS/Windows has one. Type 'debug' in any command window. If you're using any other machine, please read your computer's manual for instructions) and just key in the hexadecimal into your keyboard after exectuting the appropriate commands on the debugger. The machine should be able to understand the binary bit patterns hidden within those numbers. To finish, just ask the debugger to execute your program. If you are satisfied with the results, you can save it unto disk. You should refer to your debugger's manuals for the appropriate commands for the debugger. However, before you try this, I feel it in my duty to warn you that this is a painstaking, arduous, repetitive process and that you're probably not going to like it (I certainly don't!); I would most certainly recommend getting an assembler. A good, free assembler is NASM (the Netwide Assembler: http://www.web-sites.co.uk/nasm/rdoff/projects.html). It is still in beta stage, but it is certainly better than paying Micro$ith's price!


umm...i this might sound silly...

Post 3

diego001

You don't need to compile this code in hexadecimal. What you need to do is get a debugger in whatever machine you're running (MS-DOS/Windows has one. Type 'debug' in any command window. If you're using any other machine, please read your computer's manual for instructions) and just key in the hexadecimal into your keyboard after exectuting the appropriate commands on the debugger. The machine should be able to understand the binary bit patterns hidden within those numbers. To finish, just ask the debugger to execute your program. If you are satisfied with the results, you can save it unto disk. You should refer to your debugger's manuals for the appropriate commands for the debugger. However, before you try this, I feel it in my duty to warn you that this is a painstaking, arduous, repetitive process and that you're probably not going to like it (I certainly don't!); I would most certainly recommend getting an assembler. A good, free assembler is NASM (the Netwide Assembler: [URL removed by moderator]). It is still in beta stage, but it is certainly better than paying Micro$ith's price!


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more