Motorola M68CPU32BUG Manuel d'utilisateur Page 120

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 196
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 119
SYSTEM CALLS
M68CPU32BUG/D REV 1 5-6
.CHANGEV Parse Value, Assign to Variable .CHANGEV
If the above code was called with a syscall routine and BUFFER contained ’1 3’ in pointer/count
format and POINT contained 2 (longwords), then COUNT would be assigned the value 3, and
POINT would contain 4 (pointing to first character past 3). Note that POINT is the offset of the
buffer start address (not the address of the first character in the buffer) to the next character to
process. In this case, a value of 2 in POINT indicates that the space between 1 and 3 is the next
character to be processed. After calling .CHANGEV, the screen displays:
COUNT = 3
If the above code was called again, nothing could be parsed from BUFFER, so a prompt would
be issued. For example, if the string 5 is entered in response to the prompt.
COUNT = 3? 5<CR>
COUNT = 5
If in the previous example nothing had been entered at the prompt, COUNT would retain its prior
value.
COUNT = 3? <CR>
COUNT = 3
Vue de la page 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 195 196

Commentaires sur ces manuels

Pas de commentaire