SAVE
SAVE <fil 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
SAVE "BINARY", 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:
L O A D , R U N < f i l e n a m e > , M E R G E , C H A I N , C H A I N M E R G E
SGN
S G N ( < n u m e r i c e x p r e s s i o n > )
10 INPUT "What ' 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:
C O S , T A N , A T N , D E G , R A D
Summary of Contents for CPC464
Page 1: ......
Page 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Page 118: ...TO DO DRAW THIS PAGE ...
Page 219: ...actual value may be made to vary during the execution of a program ...
Page 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Page 241: ......