Machine code: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
The task requires poking machine code directly into memory and executing it. This is strictly for x86 (32 bit) architectures. The machine code is the opcodes of the following simple program: |
The task requires poking machine code directly into memory and executing it. This is strictly for x86 (32 bit) architectures. The machine code is the opcodes of the following simple program: |
||
<pre> |
<pre><lang asm> |
||
mov EAX, [ESP+4] |
mov EAX, [ESP+4] |
||
add EAX, [ESP+8] |
add EAX, [ESP+8] |
||
ret |
ret</lang> |
||
</pre> |
</pre> |
||