954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

marie Simulator, 3 numbers

Hello, i'm having problem with this code, the program have to multiply 3 number and provide the result. But i always get zero for the final result

ORG  100
input A
store A 
output A

input B
store B 
output B

input C
store C 
output C

loop, load Z
add A
Store Z
load B
subt one
Store B
Skipcond 400
Jump loop 
loop2, load P
add Z
Store P
Load C
Subt one
Store C
Skipcond 400
jump loop2
output P
halt

A, dec 0
B, dec 0
C, dec 0
one, dec 1
Z, dec 0
P, dec 0


What i'm doing wrong?

Thanks for the help

pixelss
Newbie Poster
14 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

What is this assembler?
'store', without 'where to store': do you have a SINGLE storage place?
Or perhaps you have a LIFO storage : Use 'PUSH' to store, 'POP' to read, in most assembly languages.

Or did you mean a 4-bit processor language?

zalia64
Newbie Poster
10 posts since Feb 2010
Reputation Points: 30
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You