Write an ALP to find 1's complement & 2's complement of any given data?

This question given by ram. i want to find this solution.This question is derived by microprocessor 

1 Answer
Address mnemonics Hexcode
2000 LXIH3000H 21,00,30
2003 MOVA,M 7E
2004 CMA 3C
2005 STA 2050H 32,50,20
2008 INR A 2'S 3C
2009 STA 2051H 32,51,20
200C HLT 76

This is answer of 1's complement & 2's complement of any data you can change only hexcode.This is very useful program in microprocessor.

We use cookies to enhance your experience, to provide social media features and to analyse our traffic. By continuing to browse, you agree to our Privacy Policy.