Skip to content

Commit a92f3c4

Browse files
author
naumanumer
committed
Inserted pcbasic
1 parent 69d4bbd commit a92f3c4

File tree

174 files changed

+225444
-0
lines changed

Some content is hidden

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

174 files changed

+225444
-0
lines changed
7.5 KB
Binary file not shown.
11 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
9.5 KB
Binary file not shown.

GwBasic.Net/PcBasic/Include/pyconfig.h

Lines changed: 759 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<noInheritable></noInheritable>
4+
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
5+
<file name="msvcr90.dll" hashalg="SHA1" hash="e0dcdcbfcb452747da530fae6b000d47c8674671"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig:DigestValue>KSaO8M0iCtPF6YEr79P1dZsnomY=</dsig:DigestValue></asmv2:hash></file> <file name="msvcp90.dll" hashalg="SHA1" hash="81efe890e4ef2615c0bb4dda7b94bea177c86ebd"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig:DigestValue>ojDmTgpYMFRKJYkPcM6ckpYkWUU=</dsig:DigestValue></asmv2:hash></file> <file name="msvcm90.dll" hashalg="SHA1" hash="5470081b336abd7b82c6387567a661a729483b04"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig:DigestValue>tVogb8kezDre2mXShlIqpp8ErIg=</dsig:DigestValue></asmv2:hash></file>
6+
</assembly>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
3+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
4+
<noInheritable/>
5+
<assemblyIdentity
6+
type="win32"
7+
name="Microsoft.VC90.MFC"
8+
version="9.0.21022.8"
9+
processorArchitecture="x86"
10+
publicKeyToken="1fc8b3b9a1e18e3b"
11+
/>
12+
<file name="mfc90.dll" /> <file name="mfc90u.dll" /> <file name="mfcm90.dll" /> <file name="mfcm90u.dll" />
13+
</assembly>

GwBasic.Net/PcBasic/Renum.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
pcbasic.exe --run="a.bas" --output="b.bas" --convert={a}
3+
pause

GwBasic.Net/PcBasic/SDL.dll

312 KB
Binary file not shown.

GwBasic.Net/PcBasic/SDL_image.dll

64 KB
Binary file not shown.

GwBasic.Net/PcBasic/SDL_mixer.dll

481 KB
Binary file not shown.

GwBasic.Net/PcBasic/SDL_ttf.dll

20.5 KB
Binary file not shown.

GwBasic.Net/PcBasic/Syntax Editor.pdb

154 KB
Binary file not shown.

GwBasic.Net/PcBasic/_ctypes.pyd

85.5 KB
Binary file not shown.

GwBasic.Net/PcBasic/_hashlib.pyd

350 KB
Binary file not shown.
26.5 KB
Binary file not shown.

GwBasic.Net/PcBasic/_socket.pyd

43.5 KB
Binary file not shown.

GwBasic.Net/PcBasic/_ssl.pyd

879 KB
Binary file not shown.
8 KB
Binary file not shown.

GwBasic.Net/PcBasic/a.BAS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
10 print "Loading PcBasic..."
2+
20 print ""
3+
30 print "GwBasic.Net"
4+
40 print "By: Nauman Umer"

GwBasic.Net/PcBasic/a.txt

Whitespace-only changes.
Binary file not shown.

GwBasic.Net/PcBasic/bz2.pyd

67 KB
Binary file not shown.

GwBasic.Net/PcBasic/data/PCTERM.BAS

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
1 ' PC-BASIC - PCTERM.BAS
2+
2 ' Simple terminal emulator for the TERM statement
3+
3 ' (c) 2015 Rob Hagemans
4+
4 ' This file is released under the GNU GPL version 3
5+
5 '
6+
100 GOSUB 23000 ' Reset
7+
110 GOSUB 30000 ' Read default settings
8+
200 CAPTION$ = "(TERM) - Terminal Emulator"
9+
210 XON$ = CHR$(17): XOFF$ = CHR$(19)
10+
220 PAUSE% = 0
11+
230 STATE% = 0
12+
1000 ' Event loops
13+
1020 WHILE -1
14+
1030 CLS
15+
1040 GOSUB 21000 ' draw key line
16+
1050 IF STATE% THEN 3000
17+
2000 ' Menu loop
18+
2010 GOSUB 19000 ' close connection
19+
2020 ON ERROR GOTO 0
20+
2030 ON KEY(1) GOSUB 10000: KEY(1) ON ' toggle menu/comm state
21+
2040 ON KEY(2) GOSUB 7000: KEY(2) ON ' exit
22+
2050 KEY(3) OFF: KEY(4) OFF
23+
2060 LOCATE 1,1,,0,7
24+
2070 WHILE -1
25+
2072 GOSUB 22000 ' Set width
26+
2075 GOSUB 20000 ' draw menu screen
27+
2080 GOSUB 24000 ' input
28+
2090 X% = INSTR(1, CHOICE$, ",")
29+
2100 IF X%<2 THEN 2900
30+
2110 I% = VAL(CHOICE$)
31+
2120 IF (I%<1) OR (I%>NSETTINGS%) THEN 2900
32+
2130 VL$[I%] = RIGHT$(CHOICE$, LEN(CHOICE$)-X%)
33+
2900 WEND
34+
3000 ' Terminal loop
35+
3010 ON ERROR GOTO 13000
36+
3020 OPEN "COM1:"+VL$[1]+","+VL$[3]+","+VL$[2]+",,CS,DS" AS 1
37+
3030 ON ERROR GOTO 13100
38+
3040 ON COM(1) GOSUB 11000: COM(1) ON ' regulate flow
39+
3050 ON KEY(3) GOSUB 15000: KEY(3) ON ' NUL
40+
3060 ON KEY(4) GOSUB 16000: KEY(4) ON ' Break
41+
3070 LOCATE 1,1,,6,7
42+
3080 WHILE -1
43+
3090 IF EOF(1) THEN 3130
44+
3100 GOSUB 12000 ' check flow
45+
3110 C$ = INPUT$(1, #1)
46+
3120 IF C$ <> CHR$(10) THEN PRINT C$;
47+
3130 A$ = INKEY$: IF A$ = "" THEN 3080 ELSE IF LEFT$(A$,1) = CHR$(0) THEN 3130
48+
3140 IF LEFT$(VL$[4],1) = "Y" OR LEFT$(VL$[4],1) = "y" THEN PRINT A$;
49+
3150 PRINT#1, A$;
50+
3160 WEND
51+
4000 WEND
52+
7000 ' Exit
53+
7010 GOSUB 23000 ' Reset
54+
7040 KEY ON
55+
7050 END
56+
10000 ' Toggle state
57+
10010 STATE% = NOT STATE%
58+
10020 RETURN 1000
59+
11000 ' Stop flow
60+
11010 IF LOC(1) > 224 AND NOT PAUSE% THEN PRINT #1,XOFF$;: PAUSE% = -1
61+
11020 RETURN
62+
12000 ' Start flow
63+
12010 IF LOC(1) < 16 AND PAUSE% THEN PRINT #1,XON$;: PAUSE%=0
64+
12020 RETURN
65+
13000 ' Open Com errors
66+
13010 LOCATE 23,1
67+
13020 PRINT "File open error"
68+
13030 STATE% = 0
69+
13040 RESUME 1000 ' back to menu
70+
13100 ' Errors during communication
71+
13110 RESUME
72+
15000 ' Send NUL
73+
15010 PRINT#1, CHR$(0);
74+
15020 RETURN
75+
16000 ' Send BREAK
76+
16010 LCR% = &H3FB ' Serial Line Control Register for COM1:
77+
16020 LCR.STATE%=INP(LCR%)
78+
16030 ' raise break signal
79+
16040 OUT LCR%, LCR.STATE% OR &H40
80+
16050 ' wait for a bit, then lower again
81+
16050 FOR SLEEP% = 1 TO 100: NEXT SLEEP%
82+
16060 OUT LCR,SD%
83+
16100 RETURN
84+
19000 ' Close connections
85+
19010 CLOSE
86+
19020 PAUSE% = 0
87+
19100 RETURN
88+
20000 ' Draw menu screen
89+
20010 CLS
90+
20020 LOCATE 1,1,1: ROW% = 5
91+
20030 PRINT CAPTION$: PRINT
92+
20040 FOR I% = 1 TO NSETTINGS%
93+
20050 LOCATE ROW%, 1: PRINT I%; NM$[I%]
94+
20060 LOCATE ROW%, 23: PRINT "["+VL$[I%]+"] "+RANGE$[I%]
95+
20070 ROW% = ROW% + 1: IF ROW% = 8 THEN ROW% = 9
96+
20080 NEXT I%
97+
20090 GOSUB 21000
98+
20100 RETURN
99+
21000 ' Draw key line
100+
21010 IF STATE% THEN KEY1$="Menu" ELSE KEY1$="Conv"
101+
21020 LOCATE 25,1: PRINT "f1=" + KEY1$ + " f2=Exit f3=Nul f4=Break";
102+
21030 RETURN
103+
22000 ' Set width
104+
22010 ON ERROR GOTO 22100
105+
22020 WIDTH VAL(VL$[5])
106+
22030 ON ERROR GOTO 0
107+
22040 RETURN
108+
22100 ' Set width - error handler
109+
22110 VL$[5] = "40"
110+
22120 RESUME
111+
23000 ' Reset
112+
23010 KEY(1) OFF: KEY(2) OFF: KEY(3) OFF: KEY(4) OFF: COM(1) OFF
113+
23020 ON ERROR GOTO 0
114+
23030 GOSUB 19000 ' Close connections
115+
23040 SCREEN 0,0,0,0: CLS: KEY OFF
116+
23050 RETURN
117+
24000 ' Interruptible input
118+
24020 CHOICE$ = ""
119+
24030 WHILE -1
120+
24040 C$ = INKEY$
121+
24050 IF C$ = CHR$(13) THEN RETURN
122+
24060 IF C$ = CHR$(27) THEN LOCATE 18,21: PRINT SPACE$(LEN(CHOICE$));: CHOICE$=""
123+
24070 IF C$ >= " " THEN CHOICE$ = CHOICE$ + C$
124+
24080 LOCATE 18,1: PRINT "Change <line,data>? "; CHOICE$;
125+
24100 WEND
126+
30000 ' Settings
127+
30010 DATA "Line bit rate", "300", "(300..4800)"
128+
30020 DATA "Data bits", "7", "(7 or 8)"
129+
30030 DATA "Parity type", "E", "(E,O,or N)"
130+
30040 DATA "Host echoing", "Y", "(Y or N)"
131+
30050 DATA "Screen width", "80", "(40 or 80)"
132+
30060 NSETTINGS% = 5
133+
30070 FOR LIN% = 1 TO NSETTINGS%
134+
30080 READ NM$[LIN%], VL$[LIN%], RANGE$[LIN%]
135+
30090 NEXT
136+
30100 RETURN

GwBasic.Net/PcBasic/data/default.ini

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# This is the default PC-BASIC configuration. You should not edit this file.
2+
#
3+
# To change your PC-BASIC configuration, edit your local user configuration file.
4+
# It can be found in the following location:
5+
# Windows 7 or 8: C:\Users\<username>\Appdata\Roaming\pcbasic\PCBASIC.INI
6+
# Windows XP: C:\Documents and Settings\<username>\Application Data\pcbasic\PCBASIC.INI
7+
# Mac OS X: ~/Library/Application Support/pcbasic/PCBASIC.INI
8+
# Linux: ~/.config/pcbasic/PCBASIC.INI
9+
10+
11+
# The operating system presets below are loaded automatically on the corresponding operating system.
12+
13+
[windows]
14+
15+
[osx]
16+
17+
[linux]
18+
19+
[android]
20+
mount=C:./files,D:/sdcard/download,S:/sdcard
21+
resume=True
22+
fullscreen=True
23+
pen=left
24+
copy-paste=none,none
25+
26+
[unknown_os]
27+
28+
29+
# Below are preset definitions. These are sets of options that can be loaded with the --preset command-line option.
30+
# For example, --preset=tandy will load all options in the [tandy] section. Preset options override default options.
31+
# To add a preset, just add a section with a preset name of your choice between square brackets.
32+
33+
34+
[strict]
35+
strict-hidden-lines=True
36+
strict-newline=True
37+
strict-protect=True
38+
allow-code-poke=True
39+
shell=native
40+
nokill=True
41+
ctrl-c-break=False
42+
43+
[basica]
44+
reserved-memory=789
45+
46+
[pcjr]
47+
syntax=pcjr
48+
pcjr-term=PCTERM.BAS
49+
video=pcjr
50+
font=vga
51+
codepage=437
52+
reserved-memory=4035
53+
text-width=40
54+
video-memory=16384
55+
56+
[tandy]
57+
syntax=tandy
58+
video=tandy
59+
font=tandy2
60+
codepage=437
61+
aspect=3072,2000
62+
max-reclen=255
63+
reserved-memory=3240
64+
video-memory=16384
65+
66+
[cga]
67+
video=cga
68+
font=cga
69+
codepage=437
70+
text-width=40
71+
72+
[ega]
73+
video=ega
74+
font=vga
75+
76+
[mda]
77+
video=mda
78+
font=cga,mda
79+
codepage=437
80+
monitor=mono
81+
mono-tint=0,255,0
82+
83+
[hercules]
84+
video=hercules
85+
font=cga,mda
86+
codepage=437
87+
monitor=mono
88+
mono-tint=0,255,0
89+
90+
[olivetti]
91+
video=olivetti
92+
font=cga,olivetti
93+
codepage=437
94+
95+
[vga]
96+
video=vga
97+
font=vga
98+
codepage=437

0 commit comments

Comments
 (0)