ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

Introduction to the SPL Interpreter
Chapter 8 Improving the User Interface
P1PMF Split1 QBASIC. P1PMF Split2QBasic Command Prompt Will launch the emulator DOS operating system? Press Alt + Enter to display the widescreen.
Decision Analysis Tools in Excel
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
The Web Warrior Guide to Web Design Technologies
The Little man computer
This presentation contains the following: -the availability and need menu options -the add option Mark Smith.
1 Lab Session-IV CSIT-120 Spring 2001 Lab 3 Revision and Exercises Rev: Precedence Rules Lab Exercise 4-A Machine Language Programming The “Micro” Machine.
Macros Excel built-in functions are great but limited Macros are a means for the user to define new functions A macro is a single command that automates.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#6)
A453 Exemplar Password Program using VBA
 What are the different types of loops? ◦ Do….While  Performs statements within loop while a condition is true ◦ Do….Until  Performs statements within.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
© The McGraw-Hill Companies, 2006 Chapter 4 Implementing methods.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Working with Windows 2000 What it is: The system inside your computer that enables it to run software Uses icons (pictures) to access and work within programs.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
This example is a step by step walkthrough for installing the SRH Front Desk printer in Windows 7 (64 Bit).
NOBELCON Version 4.0 USER MANUAL. Get started Obtain Excel spreadsheet with coordinates. Open spreadsheet in Excel. If there are multiple sets of coordinates.
CTS130 Spreadsheet Lesson 19 Using What-If Analysis.
Scratch Programming Lesson 4 Question asking and answering.
ResponseCard XR Answering Questions. Polling The host computer must be able to receive your responses, but it can only do so when the polling is open.
Chapter 9 Macros And Visual Basic For Applications.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
1 A Balanced Introduction to Computer Science David Reed, Creighton University ©2005 Pearson Prentice Hall ISBN X Chapter 4 JavaScript and.
1 PowerPoint II Slide Transitions, Animations, and Links.
line.net/ okpop.com/bar elythereflashin dex.html.
Repetition. Loops Allows the same set of instructions to be used over and over again Starts with the keyword loop and ends with end loop. This will create.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Sundara Ram Matta Feb 16 th, Sundara Ram Matta Feb 16 th, 2015
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Georgia Institute of Technology Speed part 1 Barb Ericson Georgia Institute of Technology May 2006.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
1 Using the mail.cozzini.com Address Book. 2 Sending a new Click on New button.
Introduction Chapter 1 1/22/16. Check zyBooks Completion Click on the boxes for each section.
Calculator Program Explained by Arafa Hamed. First Designing The Interface Ask yourself how many places are there that will be used to input numbers?
This is where you can reset and run your program. If your program has an “INP” (input) command, you will type it in this box here. Using the LMC These.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
Mastering LMC Coding Part #1 Introduction to Low Level Languages Introduction to Little Man computer Simple examples (demos) with video tutorials included.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Program to multiply 2 numbers 500-Input x 291-Store acc. as x 500-Input y 292-Store acc. as y 193-Load y in to acc. (0 on 1 st parse) 391-Add x to acc.
The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk.
Little Man Computer Task 1 Last lesson you were asked to write a program to multiply two numbers together. The next slide has a working program to do this.
The Little man computer
Development Environment
MicroEconomix 1500 RSLogix 500 LAB#2
Please use speaker notes for additional information!
More Loops.
Chapter 1 Minitab Recipe Card
Introduction to TouchDevelop
CSCI-N 100 Dept. of Computer and Information Science
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Using screens and adding two numbers - addda.cbl
Variables & getting info from the user
DAT2343 LMC Simulator Usage © Alan T. Pinck / Algonquin College; 2003.
4 – History of Programming Languages
Little Man Computer There’s a little man in the mailroom that follows each instruction to the letter but he can only follow one instruction at a time.
Event loops.
Presentation transcript:

ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found at

Click to start ABNIAC

This is ABNIAC. (The Java version) These are the commands used in ABNIAC - Store, Add, Compare, Jump, Output, ASCII output, Halt, Run.

ADD is used to add the value of two cells (locations) together. When you select the ADD command, you will be asked for the location of the first value, the second value and the location to store the answer. The COMPARE command compares the value of two cells. The value of the first location to compare (test), the location of the second value to test, and the location of a command to jump to if the values in those two location are equal. STORE is the way ABNIAC handles input. When you press the STORE button, you will be asked for the value you wish to store and the address (location) you want to store the value to.

The JUMP command moves the program control to different parts of the memory. JUMP and COMPARE commands are often used in conjunction with each other. This allows the program to repeat parts of itself This command is used to send output to the user. The only parameter the OUTPUT command accepts is the location to output. The location is read and the user sees a window with the value of that location in it. The information displayed in the window will generally be an integer.

When the HALT command is encountered in ABNIAC, it stops looking for commands to execute When you activate the RUN command, ABNIAC will attempt to process the commands you placed in memory. The program will run until encounters HALT command or runs out of memory. ASCII Output is a variant of the OUPUT command. It has only one parameter like the OUTPUT command. It too reads the location and a window appears with the information in it. But, instead of an integer, a text character will appear.

When you click on Store, you will type in the value you want to store and the address (location) you want to store it in. Then click on OK

Here the value of 65 is being stored in the address (location) of 20. Click OK

You will see that the computer will store the value of 65 in location 20. Next click on the output you want. -Output is for displaying integers (numbers) -ASCII Output is for displaying text.

Click on Output Then Click on OK

This will display the value of location 20.

Click on ASCII Output Now click on OK

This will display the value in location 20 as text

Click on Halt. This is to stop the program from running away.

Click on the Speed menu and select the speed you want the program to run at. Medium or Slow is recommended. Once you have chosen the speed, click on Run. This makes the program run. Watch the Output box on the right

The program will run. The first piece of information to appear in the Output box will the value 65. The next piece to appear is the letter A. The ASCII character with the value of 65 is A Once the output is done, the program will stop.

Creating a program to display a message.  Look at the ASCII chart to find the ASCII number that corresponds with letters of you name.  Using the STORE command, store the ASCII values.  Using the ASCII OUTPUT command, tell the computer to display each address that was used to store an ASCII value.  When all of the output commands are written, select the HALT command.  Select the speed to run the program (medium or slow is recommended).  Click on Run  Watch the right-hand column for the alpha characters to appear, this is the output of the program.

The values being stored are 72, 101, 108 and 111

The address (location) the selected values will be stored in are 40, 41, 42, 43 and 44.

The desired output will be to ask the computer to display the ASCII character for each individual cell (location).

Click on HALT. Click on RUN. Look at the display in the right-side column.

Creating a loop in ABNIAC To create a loop in ABNIAC you will use four. commands: add, compare (test), jump and halt. Look at the following slides.  First you will STORE two values that you are going to add together and what location (address) you want to store them in. The third value stored is the one you will use to compare and what location (address) you want to store it in.  You will tell the computer what two locations to go to, ADD whatever the two values are in those locations and then where to put (store) the answer.  The COMPARE (test) command is used to have the computer look at two locations (address) and ask the computer if the values in the two locations are the same. The line “then jump to the instruction in location 30” tells the computer what to do if the two locations ARE the same value.  The JUMP command tells the computer where to go if the to values in the two locations are NOT equal.

ADD is used to add the value of two cells (locations) together. You MUST use the store command first to put the values in a location. You are asking the computer to look in those addresses, take whatever two values are there and add them together. The first value and location The second value and location (also called the counter) The third value and location The values entered into the locations can change. The location (address) does not.

Compare - This command compares the value of two cells; this command has three parameters: the value of the first location to compare, the location of the second value to compare, and the location of a command to jump to if the values in those two location are equal; First location Second location Location to jump to Compare command is an example of what is called a condition. It can be used to program concepts called loops.

The JUMP command moves the program control to different parts of the memory JUMP and COMPARE commands are often used in conjunction with each other. This allows the program to repeat parts of itself.

This line tells the computer what location to go to if the locations have the same value; what ever the command is in that location, the computer will do.

If those two location do not have same value, this line tells the computer to go to a location; this will enable it to repeat an action. (What action will the computer do again so that the two locations will have the same value?)

Select the speed to run the program. Tell the computer to run the program

Watch as the computer runs through the program and watch the display to the right.

When the two locations (in this program 50 and 52) have the same value, the program will stop.