AMSTRAD CPC464 User Manual page 148

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

HEX$
H E X $ ( < u n s i g n e d i n t e g e r e x p r e s s i o n > [ , < i n t e g e r e x p r e s s i o n > ] )
P R I N T H E X $ ( 6 5 5 3 4 )
F F F E
FUNCTION: Converts the number given into Hexadecimal form. (See Appendix II). The second
(integer expression can be used to specify the minimum length of the result.
Associated keywords: B I N $ , S T R $
HIMEM
H I M E M
?HIMEM
43903
VARIABLE: Gives the address of the highest byte of memory used by BASIC, and can be used in
numeric expressions in the usual way.
Before resetting the highest byte of available memory using the MEMORY command, it is advisable
to issue the command m m = H I M E M, You will thereafter be able to return to the previous memory
capacity by issuing the command:
M E M O R Y m m .
Associated keywords: F R E , M E M O R Y
IF
IF
I F < l o g i c a l e x p r e s s i o n > T H E N < o p t i o n p a r t > [ E L S E < o p t i o n p a r t > ]
I F < l o g i c a l e x p r e s s i o n > G O T O < l i n e n u m b e r > [ E L S E < o p t i o n p a r t > ]
I F A > B T H E N A = C E L S E A = D
I F A>B GOT0 1 0 0 0 E L S E 3 0 0
COMMAND: A very widely used command that is used to conditionally determine branch points in a
program. The logical part is evaluated, and if true the THEN or GOTO part is executed, if false, the
program skips to the ELSE part, or merely passes onto the next line. The statements may be nested
to any depth, limited by line length. The IF is terminated by the line end. It is not permissable to
have further statements that are independent of the IF on the same line.
Associatedkeywords: T H E N , E LS E , G O T O , O R , A N D , W H I L E

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents