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 Simulator Posted by JoGo on 14 Nov 2009 at 11:28 AM
Ok cna someone break how to write this for a Marie Simultor...Please, Step by Step, so i better understand what to do...Thank You

Input a number
If number >10 then
number = number -5
Else
number = number + 3
Endif

This is what I did
Org 100
Input
Store X
Skipcond 010
Jump Else
Sudt 5
Jump endif
Else, Add 5
Endif, Halt
X, Dec 0

Please, tell me what I did wrong I am lost. Please, break it step by step for me!!!

Thank You in advance!!!
Report
Re: Marie Simulator Posted by maxsky0109 on 29 Jun 2011 at 8:38 PM
org 100
input
store number
subt y
skipcond 800
jump else
load number
subt z
store number
else load number
add k
store number
halt



 

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.