1 / 23

;-----------------------------------------------------------PowerPPL v2.1----

;-----------------------------------------------------------PowerPPL v2.1----. ; File : 7&8-BIT.PPS. ; Original by : PAUL MILLER on 10/12/1996 at 20:21:23. ; Last update by : PAUL MILLER on 10/12/1996 at 21:50:28.

tawana
Download Presentation

;-----------------------------------------------------------PowerPPL v2.1----

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. ;-----------------------------------------------------------PowerPPL v2.1----

  2. ; File : 7&8-BIT.PPS

  3. ; Original by : PAUL MILLER on 10/12/1996 at 20:21:23

  4. ; Last update by : PAUL MILLER on 10/12/1996 at 21:50:28

  5. ;----------------------------------------------------------------------------;----------------------------------------------------------------------------

  6. ;TAB_SETTING=2

  7. ; this program basically is an interface for the two functions, To7Bit and

  8. ; To8Bit, so I did not waste time commenting it.

  9. *$USEFUNCS

  10. *$INCLUDE:TO7BIT.PPS

  11. *$INCLUDE:TO8BIT.PPS

  12. Begin

  13. String str

  14. String response

  15. String allchars

  16. Byte x

  17. For x = 127 to 254 • allchars = allchars+chr(x)

  18. Next

  19. allchars = mask_ascii()+allchars

  20. str = "²±° Sample 8-Bit string °±²"

  21. While (response != "Q") do • Cls • PrintLn "EMSI/IEMSI 7-Bit and 8-Bit translation" • PrintLn "--------------------------------------" • NewLine • PrintLn "String = """, str, """" • NewLine • PrintLn "1. Enter new string" • PrintLn "2. Convert to 7-Bit" • PrintLn "3. Convert to 8-Bit" • NewLine • InputStr "(Q=Quit) Selection", response, 7, 1, Mask_Ascii(), ERASELINE+UPCASE • Select Case response • Case 1 • InputStr "String", str, 7, 200, allchars, HIGHASCII • Case 2 • Print "Working ..." • str = To7Bit(str) • Case 3 • Print "Working ..." • str = To8Bit(str) • End Select

  22. EndWhile

  23. End

More Related