home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
SIMTEL
/
CPMUG
/
CPMUG051.ARK
/
MEMORY.INP
< prev
next >
Wrap
Text File
|
1984-04-29
|
758b
|
31 lines
#$%!0 (+-*/) 0. Special character selection
MEM[$]=$# 1. Template line
!F3% 2. Store into memory
% 3. End of macro
PRINT MEM[$]# 4. Template line
!10=!11!F14% 5. Extract info and output
% 6. End of macro
FORMAT MEM[$]# 7. Template line
!11!26% 8. Extract info
!F14% 9. Output
1111111= 22222222222222222% 10. Format
% 11. End of macro
END# 12. Template line
!F0% 13. Terminate processing
%% 14. End of macros
MEM[25]=TWENTY FIVE#
MEM[ABC]=HELLO#
MEM[EQUATION]=A=2*(B+C)#
MEM[X=Y]=Z#
MM[12]="E" MISSING#
MEM [XYZ]=SPACE AFTER "MEM"#
MEM[ABC)]=UNBALANCED STRING#
MEM[ABC]=UNBALANCED (STRING#
PRINT MEM[25]#
PRINT MEM[ABC]#
PRINT MEM[PDQ]#
FORMAT MEM[25]#
FORMAT MEM[ABC]#
FORMAT MEM[PDQ]#
END#