FROM:http://stone688598.bokee.com/2618088.html
1. 字/字节/位
在MIX中 1Byte = 6Bit, 1Word = 5Bytes,字节顺序从左到右
1 byte 0 ~ 63
2 bytes 0 ~ 4095
3 bytes 0 ~ 262,143
4 bytes 0 ~ 16,777,215
5 bytes 0 ~ 1,1073,741,823
2. 寄存器(Register)
名称 | 用法 | 尺寸 | 简写 | |
数字寄存器(Accumulator) | 很多用途,特别是算术和操作数据 | 5 bytes and a sign | A-register | rA |
扩展寄存器(Extension) | 在"右手位"(right-hand side)对rA的扩展,与rA联合做10字节的乘法或除法 | 5 bytes and a sign | X-register | rX |
索引寄存器(Index register) | 主要用于记数和引用内存地址 | 2 bytes and a sign | I-register | rI1, rI2, rI3, rI4, rI5, rI6 |
跳转寄存器(Jump register) | 跳转地址 | 2 bytes and + | J-register | rJ |
3. 指示器
1) 溢出开关(Overflow toggle) on or off
2) 比较指示器(Comparison indicator) L(less), E(equal), G(greater)
4. 内存
4000 memory cell
4. 字的一段(field)
我们用+/-表示正或者负
记法(L:R)从第L字节(包含L)到第R字节(包含R)
+-----+-----+-----+-----+-----+-----+
| 0 | 1 | 2 | 3 | 4 | 5 |
+-----+-----+-----+-----+-----+-----+
| +/- |Byte |Byte |Byte |Byte |Byte |
+-----+-----+-----+-----+-----+-----+
(0:0), the sign only,
(0:2), the sign and the first two bytes,
(4:4), the fourth byte only
5. 指令格式
+-----+-----+-----+-----+-----+-----+
| 0 | 1 | 2 | 3 | 4 | 5 |
+-----+-----+-----+-----+-----+-----+
| +/- | A | A | I | F | C |
+-----+-----+-----+-----+-----+-----+
+/-AA :地址
C : 操作代码
F : 指定(L:R)=8L+R=F作为操作的数据,例如C=8=LDA(Load the rA), F=11=(1:3),也就是Load the rA with (1:3) field
I : 可以是0到6,如果是0则不修改+/-AA,如果是1到6,则表示索引寄存器,在指令执行前,rIi的内容与+/-AA的代数和作为最终的地址记为M
OP ADDRESS, I(F)
| |
C +/-AA