1 / 3

SOFTWARE

SOFTWARE. Driving System Data Acquisition -> Assembler language Comparing -> C language Switch-case and If Statements. EXAMPLE CODE. case'backward': if(sensor == backward) { JMP to Assembler "backward" subroutine } break; case'left': if(sensor == left) {

Download Presentation

SOFTWARE

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. SOFTWARE Driving System Data Acquisition -> Assembler language Comparing -> C language Switch-case and If Statements

  2. EXAMPLE CODE case'backward': if(sensor == backward) • { • JMP to Assembler "backward" subroutine • } • break; • case'left': • if(sensor == left) • { • JMP to Assembler "left" subroutine • } • break; • case'right': • if(sensor == right) • { • JMP to Assembler "right" subroutine • } • break; • default: • JMP back to main() • break; • } • return 0; • } • #include <stdio.h> • #include <stdlib.h> • int main() • { • float forward; • float backward; • float left; • float right; • char operation; • char sensor; • char rtn; • switch (operation) • { • case'forward': • if(sensor == forward) • { • JMP to Assembler "forward" subroutine • } • break;

  3. FLOW CHART

More Related