diff --git a/index.html b/index.html index 4f11411..7d34945 100644 --- a/index.html +++ b/index.html @@ -219,22 +219,22 @@

ocpu

-
-

GRU ocpu - yet another cpu design

-
+
+

GRU ocpu - yet another cpu design

+
-
-

Features

-
+
+

Features

+
  • little endian
  • 8-bit (maybe will be changed in future)
-
-

Registers

-
+
+

Registers

+
@@ -346,9 +346,9 @@ -
-

Instuctions

-
+
+

Instuctions

+
@@ -485,28 +485,28 @@ - + - + - + - + @@ -546,8 +546,29 @@ + + + + + + + + + + + + + + + + + + + + + - + diff --git a/ocpu.org b/ocpu.org index ab9f95d..6660448 100644 --- a/ocpu.org +++ b/ocpu.org @@ -72,13 +72,13 @@ |--------------+--------+-------------------------------------------| | NAND | 0x24 | | |--------------+--------+-------------------------------------------| - | CMP | 0x25 | | + | CMP | 0x25 | Compare | |--------------+--------+-------------------------------------------| - | PUSH | 0x30 | | + | PUSH | 0x30 | Push to stack | |--------------+--------+-------------------------------------------| - | POP | 0x31 | | + | POP | 0x31 | Pop to stack | |--------------+--------+-------------------------------------------| - | JMP | 0x40 | | + | JMP | 0x40 | Jump | |--------------+--------+-------------------------------------------| | JSR | 0x41 | Jump to subroutine | |--------------+--------+-------------------------------------------| @@ -90,7 +90,13 @@ |--------------+--------+-------------------------------------------| | JNZ | 0x45 | Jump if non-zero | |--------------+--------+-------------------------------------------| - | RTS | 0x42 | Return from subroutine | + | JE | 0x46 | Jump if equal | + |--------------+--------+-------------------------------------------| + | JL | 0x47 | Jump if lower | + |--------------+--------+-------------------------------------------| + | JH | 0x48 | Jump if higher | + |--------------+--------+-------------------------------------------| + | RTS | 0x49 | Return from subroutine | |--------------+--------+-------------------------------------------| | INB | 0x50 | Copies value from I/O port to destination | |--------------+--------+-------------------------------------------|
CMP 0x25 Compare
PUSH 0x30 Push to stack
POP 0x31 Pop to stack
JMP 0x40 Jump
JE0x46Jump if equal
JL0x47Jump if lower
JH0x48Jump if higher
RTS0x420x49 Return from subroutine