Addition in Assembly

;** Add PROGRAMME ON ASSEMBLY
;** DATE: 11 FEBRUARY 2011
;** OBJECTIVE: USE OF REGISTER AND ACCUMULATOR WITH ADD
;** AURTHOR: SAHARA FOUNDATION – RAJENDRA MAN BANEPALI

ORG 0000H

MOV R5, #25
MOV R7, #34H
MOV A, #0
ADD A, R5 ;** ASSIGNING ACCUMULATOR BY VALUE OF R5 = A = A + 25
ADD A, R7 ;** ADDING VALUE OF A + R7 AND ASSIGN TO ACCUMULATOR *A
ADD A, #12H

HERE: SJMP HERE

END

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s