0% found this document useful (0 votes)
28 views1 page

16 Bit Addition

The document describes assembly language code that loads two operands from memory, adds them together, and stores the result. It loads the operands into registers, complements and extends the second operand, adds them and stores the sum back to memory.

Uploaded by

Nayan Sen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

16 Bit Addition

The document describes assembly language code that loads two operands from memory, adds them together, and stores the result. It loads the operands into registers, complements and extends the second operand, adds them and stores the sum back to memory.

Uploaded by

Nayan Sen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

.

global _c_int00
.mmregs
.data
opr1 .word 9234h
opr2 .word 8321h
.bss sum, 1
.text
_c_int00: stm #opr2,AR0
rsbx cpl
rsbx sxm
ld #0008h,DP
ld 0,A
add *AR0+,A
stm #sum,AR0
stl A,*AR0
halt: b halt
.end

You might also like