Assembly Code Share

Moderators: None (Apply to moderate this forum)
Number of threads: 375
Number of posts: 685

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Marie infinity loop? Posted by pixelss on 1 Feb 2012 at 5:26 PM
Hello,

My assignment is to create a program that will read the input values a,b,c and c from the keyboard, and the final result ( z ) have to be displayed. also the 3 inputted values will need to be displayed too.

input A
store A //(at 0)
output A

input B
store B 
output B

input C
store C 
output C

load C
subt C 
store C

load Z
add A 
store Z
Skipcond 00d 
Jump 007 
output Z
halt

A, dec 0
B, dec 0
C, dec 0
Z, dec 0


with my code i have infinity loop and i can't show the final result. whats my problem ?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.