Changes

Jump to: navigation, search

Amstrad Whole Memory Guide - BASIC support

6 bytes added, 09:21, 16 July 2008
/* Using the Maths Calls */
Notable omission are routines for the input and output of numeric data, which is handled by the main interpreter. The input process can be complicated by the need to cover binary, decimal and hexadecimal bases, and by the fact that alphabetic data may also be involved. However, in broad terms the process involves;
 
(a. Checking that the data is numeric.
 
(b. Converting from ASCII to binary values.
 
(c. Multiplying the number already input by the number base.
 
(d. Adding the new digit.
 
(e. Looping to A.
 
Exit from the loop is usual dependent on a non-numeric being found at stage a.
12,273
edits