Cellular Programming
10
Cellular Programming Air Forth 1 Ilan Kadar & Ofry Ram www.cs.bgu.ac.il/~ramo
description
Cellular Programming. Air Forth 1. Ilan Kadar & Ofry Ram www.cs.bgu.ac.il/~ramo. Writing applications to Cellular Phones. Adding function to Cellular applications. Air Forth 1. Called after Forth. Programming on the cellular , making it a lot easier and simple. - PowerPoint PPT Presentation
Transcript of Cellular Programming
![Page 1: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/1.jpg)
Cellular ProgrammingAir Forth 1
Ilan Kadar & Ofry Ram www.cs.bgu.ac.il/~ramo
![Page 2: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/2.jpg)
Writing applications to Cellular Phones
![Page 3: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/3.jpg)
Adding function to Cellular applications
![Page 4: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/4.jpg)
Air Forth 1
Called after Forth. Programming on the cellular , making it a lot
easier and simple. Switching between compile and interpret
modes, while the application is running. Optimizing compiled code.
![Page 5: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/5.jpg)
Programming Air Forth 1 is similar to RPN (Reverse Polish Notation) or postfix.
Algebraic: x + y x - y x * y x / y
Reverse Polish: x y + x y - x y * x y /
![Page 6: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/6.jpg)
Some Examples
4 5 > IF “bigger” . ELSE “smaller” . THEN
6 BEGIN DUP . 1 – DUP 0 < UNTIL
5 DO “bla” . LOOP
N 0 = IF 1 ELSE N 1 - Recurse N * THEN
![Page 7: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/7.jpg)
The Real Thing
![Page 8: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/8.jpg)
Factorial
![Page 9: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/9.jpg)
![Page 10: Cellular Programming](https://reader035.fdocuments.us/reader035/viewer/2022062314/56814589550346895db27235/html5/thumbnails/10.jpg)
The End