Machine code: Difference between revisions
Content added Content deleted
(Task description: Already there are some examples that do not strictly follow the x86 32-bit rule of this task. Relaxed requirements... Hopefully this encourages more contributions for other systems. Also cleaned up some formatting.) |
m (Doh.. Grammar...) |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
The task requires poking machine code directly into memory and executing it. The machine code is the architecture-specific opcodes which |
The task requires poking machine code directly into memory and executing it. The machine code is the architecture-specific opcodes which have the simple task of adding two unsigned bytes together and making the result available to the high-level language. |
||
For example, the following assembly language program is given for x86 (32 bit) architectures: |
For example, the following assembly language program is given for x86 (32 bit) architectures: |