Replies: 2 comments 10 replies
-
Of course, any games or other programs that can work in EHBasic with modifications posted would be appreciated! |
Beta Was this translation helpful? Give feedback.
4 replies
-
PRINT CHR$(12) works for clearing the screen |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been going through RosettaCode and trying out different mathematical or graphical functions that can run on the terminal output only, given EHBasic currently doesn't have any plotting/graphical functionality.
Current quirks I've found:
It's print (to grab input for a variable) prefers a ; over a , at the end of PRINT text.
ie, 20 PRINT "Enter an integer";
30 INPUT N
or 20 PRINT "Enter an integer"; N
seems to work fine.
CLS doesn't work. Can't clear a screen that doesn't exist.
LET can be removed when defining variable values, though multi-definitions on a single line is iffy?
TIME returns 0, as there doesn't seem to be defined, since there's no RTC code
Output past the decimal point is capped to six digits, same for Exponent based output
when I copy and paste a new program over the terminal, I usually run
NEW
CLEAR
to reset the environment. As usual, type RUN after pressing enter on the final line, should work to execute the below programs
Control C kills every BASIC code, UNLESS you've crashed the system which I managed to using a program that uses
DATA 1234,6325,2453 etc writes and reads?
Additionally, BASIC code that's too long on a single line will get cut off/not be entered, so you will need to split it up.
Beta Was this translation helpful? Give feedback.
All reactions