eis/doc/ISA.md

660 B

ISA

Current impl

opcode instruction
0x10 Input
0x11 Output
0x20 Mov
0x90 Nop

Basics

Input, Output, Mov

Math

Add, Sub, Mov, Div (will need flags...)

Conditions

Cmp, Jcc

Stack

Push, Pop

Funcion stuff

Call, Ret

x86

opcode instruction
0x00 - 0x05 ADD
0x06 PUSH
0x07 POP
0x08 - 0xD OR
0x0E PUSH
0x0F POP
0x10 - 0x15 ADC
0x16 PUSH
0x17 POP
0x18 - 0x1D SBB
0x1E PUSH
0x1F POP
0x20 - 0x25 AND
0x26 ???
0x27 DAA
0x28 - 0x2D SUB
0x2E ???
0x2F DAS
... ...