My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Computer Science Forum > Computer Science

Computer Science Computer Science is the scientific and practical approach to computation and its applications.


Reply
 
LinkBack Thread Tools Display Modes
November 21st, 2011, 06:55 AM   #1
 
Joined: Nov 2011
Posts: 1
Little Man Computer

Quote:
Hello All, i am new to LMC and would love to know how to write a Little Man program that accepts three values as input and outputs them in order of size, largest to smallest.
Below is to do with two input numbers and biggest first:

Code:
INP
STA FIRST
INP
STA SECOND
SUB FIRST
BRP SECONDBIG
LDA FIRST
OUT
BRA PROGRAMEND
SECONDBIG LDA SECOND
OUT 
PROGRAMEND HLT
FIRST DAT
SECOND DAT
Hope to get answers soon, thanks
conanq is offline  
 

My Computer Forum is free to register and we welcome everyone!

July 11th, 2012, 02:26 AM   #2
Guest
 
Joined:
Posts: n/a
Re: Little Man Computer

I think you should try the study materials provided by the examkill. You will get the complete package and at the same time this will help you to over come all the problem.
 
Reply

  My Computer Forum > Computer Science Forum > Computer Science

Tags
computer, man



Thread Tools
Display Modes






Copyright © 2018 My Computer Forum Forum. All rights reserved.