explain subtraction using 1's complement with suitable example
Answers
Answer:
please follow me
Explanation:
in subtraction by 1's complement we subtract two binary numbers using carried by 1's complement. iv) If there is no carry over, then 1's complement of the result of addition is obtained to get the final result and it is negative. ...
Answer:
ᴛʜᴇ sᴛᴇᴘs ᴛᴏ ʙᴇ ғᴏʟʟᴏᴡᴇᴅ ɪɴ sᴜʙᴛʀᴀᴄᴛɪᴏɴ ʙʏ 1's ᴄᴏᴍᴘʟᴇᴍᴇɴᴛ ᴀʀᴇ:
1)ᴛᴏ ᴡʀɪᴛᴇ ᴅᴏᴡɴ 1's ᴄᴏᴍᴘʟᴇᴍᴇɴᴛ ᴏғ ᴛʜᴇ sᴜʙᴛʀᴀʜᴇɴᴅ.
2)ᴛᴏ ᴀᴅᴅ ᴛʜɪs ᴡɪᴛʜ ᴛʜᴇ ᴍɪɴᴜᴇᴅ.
3)ɪғ ᴛʜᴇ ʀᴇsᴜʟᴛ ᴏғ ᴀᴅᴅɪᴛɪᴏɴ ʜᴀs ᴀ ᴄᴀʀʀʏ ᴏᴠᴇʀ ᴛʜᴇɴ ɪᴛ ɪs ᴅʀᴏᴘᴇᴅ ᴀɴᴅ ᴀɴ 1 ɪs ᴀᴅᴅᴇᴅ ɪɴ ᴛʜᴇ ʟᴀsᴛ ʙɪᴛ.
4)ɪғ ᴛʜᴇʀᴇ ɪs ɴᴏ ᴄᴏᴘʏ ᴏᴠᴇʀ,ᴛʜᴇɴ 1's ᴄᴏᴍᴘʟᴇᴍᴇɴᴛ ᴏғ ᴛʜᴇ ʀᴇsᴜʟᴛ ᴏғ ᴀᴅᴅɪᴛɪᴏɴ ɪs ᴏʙᴛᴀɪɴᴇᴅ ᴛᴏ ɢᴇᴛ ᴛʜᴇ ғɪɴᴀʟ ʀᴇᴀsᴏɴ ᴀɴᴅ ɪᴛ ɪs ɴᴇɢᴀᴛɪᴠᴇ.
Explanation:
ᴇxᴀᴍᴘʟᴇ:
- ᴇᴠᴀʟᴜᴀᴛᴇ-110101-10010
sᴏʟᴜᴛɪᴏɴ:1's ᴄᴏᴍᴘʟᴇᴍᴇɴᴛ ᴏғ 10011 ᴏʀ 011010. ʜᴇɴᴄᴇ,ᴍɪɴᴜᴇᴅ-110101
1's ᴄᴏᴍᴘʟᴇᴍᴇɴᴛ ᴏғ sᴜʙᴛʀᴀʜᴀᴇᴅ - 01101
ᴄᴀʀʀʏ ᴏᴠᴇʀ- 1 001111
________1
010000
- ᴛʜᴇ ʀᴇǫᴜɪʀᴇᴅ ᴅɪғғᴇʀᴇɴᴄᴇ ɪs 10000.