2’s Complement of number in Assembly – masm 8086

2’s Complement of number in Assembly – masm 8086

org 100h
.stack 100h
.data
var DW 1111111100001111b
.code
;Intilization of Data Segment
mov ax,@DATA
mov DS,ax
;First find 1's complement
not var
;Add 1 to 1's complement of number
inc var
;to terminate program
mov ah,4ch
int 21h
ret

Advertisements

2 thoughts on “2’s Complement of number in Assembly – masm 8086

  1. I am now not positive the place you are getting your info, but good topic. I needs to spend a while learning more or figuring out more. Thank you for fantastic info I used to be on the lookout for this info for my mission.

    Liked by 1 person

  2. Thanks for some other magnificent article. The place else may anybody get that kind of info in such a perfect approach of writing? I have a presentation subsequent week, and I am on the search for such info.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s