TK2633: MICROPROCESSOR - PowerPoint PPT Presentation

About This Presentation
Title:

TK2633: MICROPROCESSOR

Description:

Computer systems's most capability is ability to make decisions. ... Flow chart example: mean calculation of a set of numbers. Flow chart. Dr. Masri Ayob: TK2633 ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 15
Provided by: powe51
Category:

less

Transcript and Presenter's Notes

Title: TK2633: MICROPROCESSOR


1
TK2633MICROPROCESSOR INTERFACING
  • Structured Assembly Language Programming

2
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.

3
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.

4
(No Transcript)
5
Structured Assembly Language Programming
  • 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 systemss most capability is ability to
    make decisions.
  • The symbol asks question to determine the
    direction of programme sequence.

6
Structured Assembly Language Programming
  • 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.

7
Flow chart
  • Flow chart example mean calculation of a set of
    numbers

8
If-Then-Else
9
If-Then-Else
  • The solution.

10
Repeat-Until
  • 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.

11
Repeat-Until Example
  • Reads the keyboard until a CR (carriage return)
    is detected.

12
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.

13
Do-While
14
Thank youQA
Write a Comment
User Comments (0)
About PowerShow.com