LMC - 101 Computing https://www.101computing.net Boost Your Programming Skills! Tue, 23 Jan 2024 17:23:08 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png LMC - 101 Computing https://www.101computing.net 32 32 Using a Trace Table on a Low Level Program https://www.101computing.net/using-a-trace-table-on-a-low-level-program/ Thu, 05 May 2022 08:40:26 +0000 https://www.101computing.net/?p=14083 In the following set of challenges, we will use a trace table to demonstrate the impact of the FDE cycle on the main registers: Program Counter (PC) Memory Address Register (MAR) Memory Data Register (MDR) Current Instruction Register (CIR) Accumulator

The post Using a Trace Table on a Low Level Program first appeared on 101 Computing.

]]>
Bubble Sort Algorithm in LMC https://www.101computing.net/bubble-sort-algorithm-in-lmc/ Fri, 08 Jan 2021 19:25:31 +0000 https://www.101computing.net/?p=11816 The aim of this challenge is to implement a Bubble sort algorithm on a list of 10 values using LMC. We will be using our online LMC simulator to test our code online LMC simulator: Executing the Code We will

The post Bubble Sort Algorithm in LMC first appeared on 101 Computing.

]]>
Memory Filler in LMC https://www.101computing.net/memory-filler-in-lmc/ Thu, 07 Jan 2021 09:15:47 +0000 https://www.101computing.net/?p=11800 The aim of this challenge is to write a program in LMC that will fill in the memory/RAM with the value 999, from memory location 50 onwards (up to memory location 99). Note that even though such a program may

The post Memory Filler in LMC first appeared on 101 Computing.

]]>
Self-modifying code in LMC https://www.101computing.net/self-modifying-code-in-lmc/ Wed, 06 Jan 2021 23:55:55 +0000 https://www.101computing.net/?p=11782 In computer science, self-modifying code is code that alters its own instructions while it is executing. Getting code that overwrites itself can seem dubious, rather risky and hence unrecommended. However in some cases, it is a technique that can be

The post Self-modifying code in LMC first appeared on 101 Computing.

]]>
Stacks and Queues in LMC https://www.101computing.net/stacks-and-queues-in-lmc/ Sun, 20 Dec 2020 20:34:03 +0000 https://www.101computing.net/?p=11605 In this post we will investigate how to implement a queue and a stack data structure using low-level programming. We will use an upgraded version of Little Man Computer (LMC) that supports indirect addressing to to do. Implementing a Queue

The post Stacks and Queues in LMC first appeared on 101 Computing.

]]>
Assembly Language https://www.101computing.net/assembly-language/ Tue, 21 Apr 2020 09:45:23 +0000 https://www.101computing.net/?p=10892 Assembly language is a low-level programming language. Each assembly language is specific to a particular computer architecture. Assembly language uses mnemonics to represent low-level machine instructions or opcodes. Many operations require one or more operands in order to form a

The post Assembly Language first appeared on 101 Computing.

]]>
Step Count Algorithm in LMC https://www.101computing.net/step-count-algorithm-in-lmc/ Fri, 10 Jan 2020 13:18:47 +0000 https://www.101computing.net/?p=10022 Count-controlled loops are used in many programs to increment a counter for each iteration of the loop. Per default the increment for the counter is +1. FOR counter FROM 1 TO 10: OUTPUT (COUNTER) However you can specify a different

The post Step Count Algorithm in LMC first appeared on 101 Computing.

]]>
Higher or Lower LMC Challenge https://www.101computing.net/higher-or-lower-lmc-challenge/ Thu, 17 Oct 2019 09:44:37 +0000 https://www.101computing.net/?p=9508 For this challenge you will write a program of Guess the number (Higher or Lower?) using LMC assembly language. Your program will be used by two users (player A and player B) as follows: Ask player A to input a

The post Higher or Lower LMC Challenge first appeared on 101 Computing.

]]>
Fibonacci Sequence using LMC https://www.101computing.net/fibonacci-sequence-using-lmc/ Tue, 24 Sep 2019 16:40:10 +0000 https://www.101computing.net/?p=9385 Did you know? The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 … where the next number is found by adding up the two numbers just before it. The first

The post Fibonacci Sequence using LMC first appeared on 101 Computing.

]]>
LMC Simulator https://www.101computing.net/lmc-simulator/ Wed, 18 Sep 2019 20:39:24 +0000 https://www.101computing.net/?p=9304 LMC simulators are based on the Little Man Computer (LMC) model of a computer, created by Dr. Stuart Madnick in 1965. The LMC simulator is generally used to for educational purposes, because it models a simple Von Neumann architecture computer

The post LMC Simulator first appeared on 101 Computing.

]]>