0% found this document useful (0 votes)
20 views

Reversenum

This program loads a value into register L from memory location 2050, shifts the value left in the register 4 times, stores the result back in memory location 2050, and ends the program. It uses registers A and L to shift the value and store it back to the original memory location with an increased value.

Uploaded by

rani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Reversenum

This program loads a value into register L from memory location 2050, shifts the value left in the register 4 times, stores the result back in memory location 2050, and ends the program. It uses registers A and L to shift the value and store it back to the original memory location with an increased value.

Uploaded by

rani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

2000 LHLD 2050

2003 MOV A, L
2004 RLC
2005 RLC
2006 RLC
2007 RLC
2008 MOV L, A
2009 MOV A, H
200A RLC
200B RLC
200C RLC
200D RLC
200E MOV H, L
200F MOV L, A
2010 SHLD 2050
2013 HLT END

You might also like