1 / 14

TK2633: MICROPROCESSOR & INTERFACING

TK2633: MICROPROCESSOR & INTERFACING. Structured Assembly Language Programming. 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.

deloress
Download Presentation

TK2633: MICROPROCESSOR & INTERFACING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TK2633:MICROPROCESSOR & INTERFACING Structured Assembly Language Programming Dr. Masri Ayob: TK2633

  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. Dr. Masri Ayob: TK2633

  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. Dr. Masri Ayob: TK2633

  4. Dr. Masri Ayob: TK2633

  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 systems’s most capability is ability to make decisions. • The symbol asks question to determine the direction of programme sequence. Dr. Masri Ayob: TK2633

  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. Dr. Masri Ayob: TK2633

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

  8. If-Then-Else Dr. Masri Ayob: TK2633

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

  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. Dr. Masri Ayob: TK2633

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

  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. Dr. Masri Ayob: TK2633

  13. Do-While Dr. Masri Ayob: TK2633

  14. Thank youQ&A Dr. Masri Ayob: TK2633

More Related