MIX语言

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 signA-registerrA
扩展寄存器(Extension) 在"右手位"(right-hand side)对rA的扩展,与rA联合做10字节的乘法或除法5 bytes and a sign X-registerrX
索引寄存器(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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值