LECTURER: DR MASRI AYOB Dr. Masri Ayob: TK2633 TK2633: MICROPROCESSOR & INTERFACING Structured Assembly Language Programming.

Slides:



Advertisements
Similar presentations
Introduction to Flowcharting
Advertisements

Traditional Approach to Design
ALGORITHMS THIRD YEAR BANHA UNIVERSITY FACULTY OF COMPUTERS AND INFORMATIC Lecture two Dr. Hamdy M. Mousa.
Chapter 10 The Traditional Approach to Design
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Documentation Letts Study Guide Information Systems - IT Chapter 19.
LECTURE 1 CMSC 201. Overview Goal: Problem solving and algorithm development. Learn to program in Python. Algorithm - a set of unambiguous and ordered.
Chapter 9: The Traditional Approach to Design Chapter 10 Systems Analysis and Design in a Changing World, 3 rd Edition.
II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F.
ITEC113 Algorithms and Programming Techniques
Chapter 2- Visual Basic Schneider
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 4 Programming and Software EXCEL and MathCAD.
The Programming Discipline Professor Stephen K. Kwan 2010 Things you need to know (learn) for developing large computer programs.
Room: Timbalan Pengarah Pusat Komputer Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 4: Introduction.
TK2633: MICROPROCESSOR & INTERFACING
TK 2633 Microprocessor & Interfacing
Program Development and Programming Languages
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
The Program Design Phases
PRE-PROGRAMMING PHASE
CSC103: Introduction to Computer and Programming
Your Interactive Guide to the Digital World Discovering Computers 2012.
Programming Techniques I SCJ1013
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
10 The traditional approach to design Hisham Alkhawar.
Programming Concepts Chapter 3.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Chapter 1 Introduction to Structured Design. Introduction  System  A combination of people, equipment, and procedures that work together to perform.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Flowcharts.
Ass. Prof. Dr Masri Ayob TK 6123 Lecture 13: Assembly Language Level (Level 4)
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
TK2633 : MICROPROCESSOR & INTERFACING Lecture 10: Fixed Point Arithmetic Lecturer: Ass. Prof. Dr. Masri Ayob.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
ITEC113 Algorithms and Programming Techniques
CMP-MX21: Lecture 5 Repetitions Steve Hordley. Overview 1. Repetition using the do-while construct 2. Repetition using the while construct 3. Repetition.
Ass Prof Dr Masri Ayob TK 2633: Microprocessor & Interfacing Lecture 6: Control Instructions.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
FLOWCHARTING AND ALGORITHMS
P ROGRAMMING L OGIC GWDA123 Sharon Kaitner, M.Ed. Winter 2015: Week 2.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Program Design & Development EE 201 C7-1 Spring
Learning outcomes 5 Developing Code – Using Flowcharts
ALGORITHMS AND FLOWCHARTS
Unit 2 Technology Systems
Flowchart Symbols Terminal Process Input/ Output Decision
Chapter 2- Visual Basic Schneider
Introduction to Computing
PROGRAM CONTROL STRUCTURE
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
Introduction To Flowcharting
2.0 Problem Solving PROGRAM DESIGN
Introduction to Computer Programming
Unit# 9: Computer Program Development
How to develop a program?
Chapter 2- Visual Basic Schneider
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
ICT Gaming Lesson 2.
Basic Concepts of Algorithm
Presentation transcript:

LECTURER: DR MASRI AYOB Dr. Masri Ayob: TK2633 TK2633: MICROPROCESSOR & INTERFACING Structured Assembly Language Programming

Dr. Masri Ayob: TK2633 Structured Assembly Language Programming What is structured assembly language programming ? It is a programming methodology that aids in the development of complicated software with a minimum amount of error.

Dr. Masri Ayob: TK2633 Flow Chart Flow chart is a flow design structured programme to solve the problems. Flow chart also helps to correct and modify developed software. There are symbols to use in designing flow chart to ease programmer. These symbols consists of following process: Process, predefined process, input/output, decision, connector and terminal. Table shows examples of symbols to use in flow chart programme.

Dr. Masri Ayob: TK2633

Process Symbol: Shows any type of process in a programme. Predefined process: Usually contains the name of the subroutine or module. Input / output symbol: Whenever data are input to the programme or output from the programme. The input / output symbol usually shows the type of data and the directioin of data flow. Decision symbol: Computer systems’s most capability is ability to make decisions. The symbol asks question to determine the direction of programme sequence. Structured Assembly Language Programming

Dr. Masri Ayob: TK2633 Connector: Eliminates crisscrossed connecting lines in complicated flowcharts. Ease in understanding the developed programme. Terminal Symbol: Programmes all start somewhere and require a symbol to show where they start. Structured Assembly Language Programming

Dr. Masri Ayob: TK2633 Flow chart example: mean calculation of a set of numbers Flow chart

Dr. Masri Ayob: TK2633 If-Then-Else

Dr. Masri Ayob: TK2633 The solution. If-Then-Else

Dr. Masri Ayob: TK2633 Allows process to be executed or repeated until an event occurs. Whenever this construct appears, the process first executes a task and then a test checks for a true or a false condition. The following figures shows the repeat-until-true and repeat- until-false. Repeat-Until

Dr. Masri Ayob: TK2633 Reads the keyboard until a CR (carriage return) is detected. Repeat-Until: Example

Dr. Masri Ayob: TK2633 Do-While Is comparable to the repeat-until except for one basic difference. The do-while construct checks the condition and then, if required, performs the process and repeats the check. There are two forms: do-while-false and do-while-true.

Dr. Masri Ayob: TK2633 Do-While

Dr. Masri Ayob: TK2633 Thank you Q&A