我有两个寄存器如下,
HL(consecutive), H holds 8-bit, L holds 8-bit so HL is 16-bit register pair
DE(consecutive), D holds 8-bit, E holds 8-bit so DE is 16-bit register pair我无法像HL那样直接比较DE和if(HL > DE)。相反,我必须单独比较作为H, L, D, E的寄存器。我构造了如果-否则结构的可能性来了解if(HL > DE)。
1.
if (l < e)
if(h > d)
do what I want
... if not checking other possibilities 2, 32.
if (l > e)
if(h > d)
do what I want
... if not checking other possibilities 1, 33.
if (h > d)
do what I want
... if not checking other possibilities 1, 2我不确定我是否做得对。但是,如果是这样的话,其中三个可以简化吗?
发布于 2019-03-01 15:58:30
在没有签名的情况下,有两种情况:
h > dh == d AND l > ehttps://stackoverflow.com/questions/54948115
复制相似问题