• 3/29/12 3:27 pm
- 709 views • 0 today
- save_alt 20 downloads
- Progress
- 100% complete
25
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)
More like this
722156
2


Have something to say?
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 ;)