Published Mar 29th, 2012, 3/29/12 3:27 pm
- 577 views, 2 today
- 18 downloads, 0 today
24
Functions
test:
sets carry flag 1 if at least 1 bit matches
cmp:
sets sign 0 if a>=b
sets sign 1 if b>a
sets carry if carry
sets zero flag 1 if a=b
sets overflow if overflow
overflow and carry have diffrent meanings for signed and unsigned int
this device works for both (signed and unsigned)
test:
sets carry flag 1 if at least 1 bit matches
cmp:
sets sign 0 if a>=b
sets sign 1 if b>a
sets carry if carry
sets zero flag 1 if a=b
sets overflow if overflow
overflow and carry have diffrent meanings for signed and unsigned int
this device works for both (signed and unsigned)
Progress | 100% complete |
Tags |
722156
2
Create an account or sign in to comment.
Thanks again SilverCraft; also i've just finished adapting and installing the ALU you built me and it's working like a Dream : ) .. I'm updating the project soon; and I'll sure be giving you a mention.
edit, but with little changes the mini alu can du the same, this would reduce space ;)