FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
misc/basic/my_first_program.basic at master · yonik/misc · GitHub
yonik
/
misc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
misc
/
basic
/
my_first_program.basic
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (18 loc) · 714 Bytes
Breadcrumbs
misc
/
basic
/
my_first_program.basic
Copy path
File metadata and controls
21 lines (18 loc) · 714 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# My first program, from 1978, "Midnight Inspection" on
# a TRS-80 Model 1, Level 1 computer with Level 1 Basic.
# From "USERS'S MANUAL FOR LEVEL 1 Radio Shack TRS-80 MICRO COMPUTER SYSTEM"
# Copyright 1977, Radio Shack
10 CLS
20 Y=1:N=0
30 P. "ANSWER THESE QUESTIONS WITH 'YES' OR 'NO'." :P.
40 IN. "HAS THE CAT BEEN PUT OUT" ;A
50 IN. "IS THE PORCH LIGHT TURNED OFF" ;B
60 IN. "ARE ALL DOORS AND WINDOWS LOCKED" ;C
70 IN. "IS THE TELEVISION TURNED OFF" ;D
80 IN. "DID YOU TURN THE THERMOSTAT DOWN" ;E
90 P.:P.
100 IF (A=N)+(B=N)+(C=N)+(D=N)+(E=N) THEN 130
120 P. " GOODNIGHT" :END
130 P. "SOMETHING HAS NOT BEEN DONE. DO NOT GO TO BED"
140 P. "UNTIL YOU FIND THE PROBLEM!"
150 GOTO 40
Back
|
FazBrowse Home
|
New Git URL