AMSTRAD CPC464 User Manual page 171

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

Advertisement

SAVE
S A V E < f il e n a m e > [ , < f i l e t y p e > ] [ , < b i n a r y p a r a m e t e r s > ]
S A V E " P R O G " , P
S A V E " B I N A R Y ", B , 1 0 0 0 0 , 1 6 0 0 0 , 1 0 0 0 3
COMMAND: Save the program in memory with name <filename>. Binary parameters comprise
<start address>,<file length>[ ,<entry point>]
,A saves program in ASCII.
,P protects file.
,B saves an area of memory as a binary file - e.g. the screen.
Associatedkeywords: LOAD, RUN <filename>,MERGE,CHAIN, CHAIN MERGE
SGN
S G N ( < n u m e r i c e x p r e s s i o n > )
1 0 I N P U T " W h at ' s y o u r c u r r e n t B a n k B a l a n c e " ; C A S H
2 0 I F S G N ( C A S H ) < 1 G O T O 3 0 E L S E 4 0
3 0 P R I N T " O h d e a r , o h d e a r " : E N D
4 0 P R I N T " Y o u ' v e g o t m o r e m o n e y t h a n m e "
FUNCTION: Determines the sign of the <numeric expression>. Returns -1 if <numeric expression>
is less than 0, returns 0 if <numeric expression> = 0, and returns 1 if <numeric expression> is
greater than zero.
Associated keywords: ABS
SIN
S I N ( < n u m e r i c e x p r e s s i o n > )
P R I N T S I N ( P I / 2 )
1
FUNCTION: Calculates the Real value for the Sine of <numeric expression>, defaulting to the
Radian measure mode unless otherwise declared by a DEG command.
Associatedkeywords: COS, TAN, ATN, DEG, RAD

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents