🤖

Oep x86

Your tiny x86 brain in the browser 🧠
v0.1.0Cycles: 0
SpeedMed
EDITOR▸ Line 3
1; Sum numbers 1 to 10
2; Result in EAX
3600">MOV EAX, 0 ; accumulator = 0
4600">MOV ECX, 1 ; counter = 1
5 
6loop:
7 600">ADD EAX, ECX ; accumulator += counter
8 600">INC ECX ; counter++
9 600">CMP ECX, 11 ; compare counter with 11
10 600">JL loop ; if counter < 11, loop
11 
12600">HLT ; done! EAX = 55
CPU STATE
REGISTERS
Accumulator — used for arithmetic resultsEAX0x000000000
Base — general purpose / base pointerEBX0x000000000
Counter — used for loop countsECX0x000000000
Data — used for I/O and multiply/divideEDX0x000000000
Stack Pointer — top of the stackESP0x0000FFFC65532
Base Pointer — base of stack frameEBP0x000000000
Source Index — string operations sourceESI0x000000000
Destination Index — string operations destEDI0x000000000
FLAGS
ZF
CF
SF
OF
INSTRUCTION POINTER
EIP 0x0000MOV EAX, 0 ; accumulator = 0
STACK (0 entries)
(empty)
CONSOLE
Ready. Press Run or Step to begin...
Oep x86 v0.1.0 — not responsible for any real CPUs harmedRemix on Berrry