-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.EE200
27 lines (21 loc) · 885 Bytes
/
README.EE200
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Warrex Centurion CPU6
This is an initial cut at an assembler for what we know of the Warrex
Centurion CPU6 processor. The register naming is believed to be right
except for the mystery top registers. Things like instruction naming and
syntax are another question.
It should pick the shortest forms for instructions when it can.
Address mode syntax
LD A,nn constant
LD A,(nn) address
LD A,@(nn) address, indirected
LD A,(x) register dereference
LD A,n(x) register dereference with offset
LD A,(-x) register pre-decremeent
LD A,(x+) register post-increment
LD A,n(-x) register pre-decrement with offset
LD A,n(x+) register post-increment with offset
LD A,(PC + n) pc relative
LD A,@(PC + n) pc relative, indirected
MMU ops
Instruction size is determined by the register references. There are no
memory to memory instructions so the size is always explicit.