Microcomputer Systems MSI-P602 Manuel d'utilisateur Page 15

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 17
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 14
pchar$ = MID$(gpsmsg$, i, 1)
GOSUB sendpchar
NEXT i
pchar$ = “*”: GOSUB sendpchar
pchar$ = MID$(pchar1$, 1, 1): GOSUB sendpchar ‘send chechsum
MSD
pchar$ = MID$(pchar1$, 2, 1): GOSUB sendpchar ‘send LSD
pchar$ = CHR$(&HD): GOSUB sendpchar ‘send <CR>
pchar$ = CHR$(&HA): GOSUB sendpchar ‘send <LF>
charcount = 0
WHILE INKEY$ = “” AND charcount < 256’display 256 characters from
GPS
GOSUB getchar
WEND
PRINT “”: PRINT “”: PRINT “Strike any key to continue!
WHILE INKEY$ = “”: WEND
RETURN
getchecksum:
checksum = 0
FOR i = 2 TO LEN(gpsmsg$)
checksum = checksum XOR ASC(MID$(gpsmsg$, i, 1))
NEXT i
pchar1$ = HEX$(checksum)
RETURN
Vue de la page 14
1 2 ... 10 11 12 13 14 15 16 17

Commentaires sur ces manuels

Pas de commentaire