Skip to content

Commit ce9dd49

Browse files
committed
First commit
0 parents  commit ce9dd49

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+24999
-0
lines changed

.gitignore

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Ignore MESCC tool chain binaries
2+
cpm.exe
3+
cc.COM
4+
ccopt.COM
5+
zsm.com
6+
hextocom.COM
7+
8+
# Ignore MESCC libraries
9+
alloc.h
10+
atexit.h
11+
bsearch.h
12+
clock.h
13+
conio.h
14+
cpm.h
15+
ctype.h
16+
fileio.h
17+
fprintf.h
18+
mem.h
19+
mescc.h
20+
printf.h
21+
qsort.h
22+
rand.h
23+
redir.h
24+
setjmp.h
25+
sprintf.h
26+
string.h
27+
xprintf.h
28+
z80.h
29+
30+
# Don't ignore MESSC tool chain binaries in mescc directory
31+
!/mescc/*.exe
32+
!/mescc/*.com
33+
!/mescc/*.COM
34+
35+
# Don't ignore MESCC libraries in mescc directory
36+
!/mescc/*.h
37+
38+
# Ignore intermediate HEX files
39+
*.HEX
40+
41+
# Ignore intermediate ZSM files
42+
*.ZSM
43+
44+
# Ignore intermediate PRN files
45+
*.PRN
46+
47+
# Ignore ZIP files
48+
*.zip
49+
50+
# Ignore backup folders
51+
backup/
52+
53+
# Ignore some projects
54+
/adv
55+
/ddfont
56+
/samarux
57+
/star
58+
/threads
59+
/wp

LICENSE.MD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Each project has its own license; read LICENSE.MD in each folder for more details.

README.MD

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
My retro programming projects
2+
-----------------------------
3+
4+
For various targets, including CP/M, Z80, Amstrad PCW, Amstrad CPC, etc.
5+
6+
7+
AMSTTY
8+
------
9+
10+
Small tools for VT-52 like terminals (like the Amstrad PCW and CPC ones).
11+
12+
13+
BLOCKS
14+
------
15+
16+
A clone of SameGame for CP/M and VT-52 like terminals (like the Amstrad PCW and CPC ones).
17+
18+
19+
CPMX
20+
----
21+
22+
Some Unix-like tools for CP/M.
23+
24+
25+
MESCC
26+
-----
27+
28+
Mike's Enhanced Small C Compiler for the CP/M operating system and the Z80 cpu.
29+
30+
31+
MINESCPM
32+
--------
33+
34+
A minesweeper game clone for CP/M.
35+
36+
37+
ROBOTS
38+
------
39+
40+
A game for CP/M (including CP/M-86).
41+
42+
43+
SAMARUX
44+
-------
45+
46+
A Unix-like shell for CP/M. Includes some built-in and external commands.
47+
48+
49+
TE
50+
--
51+
52+
A small text editor for CP/M (highly configurable; there are ports for various machines and operating systems: Amstrad PCW, Amstrad CPC, Spectrum +3, Kaypro, VT-52, VT-100, DOS, Windows, GNU/Linux).
53+
54+
55+
WTD
56+
---
57+
58+
What To Do; a to-do list manager for CP/M.
59+
60+
61+
License
62+
-------
63+
64+
Each project has its own license; read LICENSE.MD on each project folder for more information.

amstty/amstty.txt

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
AMSTTY
2+
------
3+
4+
Small tools for the Amstrad CP/M screen.
5+
6+
v1.00 - 20 Mar 2015.
7+
8+
+-------------------+
9+
| A>_ |
10+
| |
11+
| |
12+
| |
13+
+-------------------+
14+
15+
(c) 2015 Miguel Garcia / FloppySoftware
16+
www.floppysoftware.es
17+
cpm-connections.blogspot.com
18+
floppysoftware@gmail.com
19+
20+
21+
INTRODUCTION
22+
------------
23+
24+
This is a small package containing some useful tools for
25+
the screen of the Amstrad computers (CPC & PCW) in CP/M.
26+
27+
As the Amstrad CP/M screen emulates a VT52, they can be
28+
useful for other CP/M computers too.
29+
30+
31+
TOOLS
32+
-----
33+
34+
CLS -- To clear the screen.
35+
CURSOR ON | OFF -- To show / hide the screen cursor.
36+
STLINE ON | OFF -- To show / hide the screen status line.
37+
38+
39+
FILES
40+
-----
41+
42+
CLS .COM -- Executable.
43+
CLS .C -- Source code.
44+
CURSOR .COM -- Executable.
45+
CURSOR .C -- Source code.
46+
STLINE .COM -- Executable.
47+
STLINE .C -- Source code.
48+
AMSTTY .TXT -- This help file.
49+
COPYING .TXT -- GNU General Public License.
50+
51+
52+
TECHNICAL NOTES
53+
---------------
54+
55+
This software was developed using MESCC (Mike's Enhanced Small C Compiler - my
56+
own version of Small C) for CP/M and Z80.
57+
58+
59+
COPYRIGHT AND LEGAL NOTES
60+
-------------------------
61+
62+
This software is copyright of FLOPPY SOFTWARE from VALENCIA, SPAIN, and is
63+
distributed under the GNU GENERAL PUBLIC LICENSE.
64+
65+
Read the COPYING.TXT text file for more details.
66+

amstty/cls.COM

640 Bytes
Binary file not shown.

amstty/cls.c

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/* status.c
2+
3+
Clear the screen of the Amstrad CP/M.
4+
5+
Copyright (c) 2015 Miguel I. Garcia Lopez / FloppySoftware
6+
7+
This program is free software; you can redistribute it and/or modify it
8+
under the terms of the GNU General Public License as published by the
9+
Free Software Foundation; either version 2, or (at your option) any
10+
later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program; if not, write to the Free Software
19+
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20+
21+
Contact:
22+
23+
www.floppysoftware.vacau.com
24+
cpm-connections.blogspot.com
25+
floppysoftware@gmail.com
26+
27+
Usage:
28+
29+
cls
30+
31+
Examples:
32+
33+
cls
34+
35+
To compile with MESCC:
36+
37+
cc cls
38+
zsm cls
39+
hextocom cls
40+
41+
Changes:
42+
43+
20 Mar 2015 : 1.00 : First version.
44+
*/
45+
46+
/* DEFs TO DECREASE CODE SIZE
47+
--------------------------
48+
*/
49+
50+
#define CC_NO_ARGS /* No ARGC & ARGV for main() */
51+
#define CC_NO_MUL /* No multiplication */
52+
#define CC_NO_DIV /* No division & modulus */
53+
#define CC_NO_SWITCH /* No switch / case */
54+
55+
/* MESCC DEFs
56+
----------
57+
*/
58+
59+
#include <mescc.h>
60+
#include <conio.h>
61+
62+
/* PROGRAM CODE
63+
------------
64+
*/
65+
66+
main()
67+
{
68+
putch(27); putch('H'); /* Send cursor to HOME */
69+
putch(27); putch('E'); /* Clear the screen */
70+
}
71+
72+

amstty/cursor.COM

1.25 KB
Binary file not shown.

amstty/cursor.c

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/* cursor.c
2+
3+
Set the screen cursor of the Amstrad CP/M.
4+
5+
Copyright (c) 2015 Miguel I. Garcia Lopez / FloppySoftware
6+
7+
This program is free software; you can redistribute it and/or modify it
8+
under the terms of the GNU General Public License as published by the
9+
Free Software Foundation; either version 2, or (at your option) any
10+
later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program; if not, write to the Free Software
19+
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20+
21+
Contact:
22+
23+
www.floppysoftware.vacau.com
24+
cpm-connections.blogspot.com
25+
floppysoftware@gmail.com
26+
27+
Usage:
28+
29+
cursor on | off
30+
31+
Examples:
32+
33+
cursor on
34+
cursor off
35+
36+
To compile with MESCC:
37+
38+
cc cursor
39+
zsm cursor
40+
hextocom cursor
41+
42+
Changes:
43+
44+
20 Mar 2015 : 1.00 : First version.
45+
*/
46+
47+
/* DEFs TO DECREASE CODE SIZE
48+
--------------------------
49+
*/
50+
51+
#define CC_NO_DIV /* No division & modulus */
52+
#define CC_NO_SWITCH /* No switch / case */
53+
54+
/* MESCC DEFs
55+
----------
56+
*/
57+
58+
#include <mescc.h>
59+
#include <conio.h>
60+
#include <string.h>
61+
62+
/* PROGRAM CODE
63+
------------
64+
*/
65+
66+
main(argc, argv)
67+
int argc, argv[];
68+
{
69+
/* Check arguments */
70+
71+
if(argc == 2)
72+
{
73+
/* Check option */
74+
75+
if(!strcmp(argv[1], "ON"))
76+
{
77+
putch(27); putch('e'); return; /* Cursor ON */
78+
}
79+
else if(!strcmp(argv[1], "OFF"))
80+
{
81+
putch(27); putch('f'); return; /* Cursor OFF */
82+
}
83+
}
84+
85+
/* Error: show usage */
86+
87+
puts("\n(c) 2015 Miguel Garcia / FloppySoftware\n\nUsage: CURSOR ON | OFF\n");
88+
}
89+

amstty/stline.COM

1.25 KB
Binary file not shown.

0 commit comments

Comments
 (0)