0% found this document useful (0 votes)
55 views2 pages

Load N Subt D Store e

The document describes a program that loads variables, performs subtraction and addition operations, stores results, and loops until a condition is met before outputting a value and halting.

Uploaded by

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

Load N Subt D Store e

The document describes a program that loads variables, performs subtraction and addition operations, stores results, and loops until a condition is met before outputting a value and halting.

Uploaded by

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

Load n

Subt d

Store e

mul, Load n

Store x

Load p

Subt d

Store p

Load e

Store y

Load x

Store base

Load p

Skipcond 400

Jump loop

Load n

OUTPUT

Halt

loop, Load x
Add base

Store x

Load y

Subt d

Store y

Skipcond 400

Jump loop

load x

store n

jump mul

n, dec 7

p, dec 2

e, dec 0

x, dec 0

y, dec 0

base, dec 0

d, dec 1

You might also like