x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

BasiCE commands

Blackfox360 Page Icon Posted 2021-01-29 7:38 PM
#
Avatar image of Blackfox360
H/PC Newbie

Posts:
19
Location:
United States
Status:
Hey guys,

So I have just started playing around with BasiCE on my CE 1.0 palmtop. After playing around for an hour or so i'm getting the hang of it, but I can't seem to find a good list of commands for it. The biggest issue I'm running into is i can't find a clear screen command. i use clear or CLR and it keeps telling me it's an illegal command. So if anyone has a list of commands out there for it would help me out quite a bit.

Thanks

-Blackfox
 Top of the page
yeek Page Icon Posted 2021-01-29 11:18 PM
#
Avatar image of yeek
Factor Fanatic

Posts:
57
Location:
Scenic New York
Status:
CLS clears the screen on Windows CE 5.0 (all I’ve got on hand just now) may work on 1.0 as well?

Complete list of standard terminal commands from 5.0:
ATTRIB Set/display file attributes.
CALL Call batch script.
CD Change directory.
CHDIR Same as CD.
CLS Clear the screen.
COPY Copy files.
DATE Display/set system date.
DEL Delete a file.
DIR Print contents of a directory.
ECHO Echo output on the screen or change echoing parameters.
ERASE Same as DEL.
EXIT Exit command interpreter.
HELP Print help for command interpreter or individual commands.
GOTO Transfer control to a label in batch processing.
IF Conditionally execute a command.
IPCONFIG Configure IP.
MD Create a directory.
MKDIR Same as MD.
MOVE Move/rename files.
PATH Alias for SET PATH.
PAUSE Suspend execution of a batch file.
PROMPT Reconfigure system prompt.
PWD Print current working directory.
RD Remove directory.
REM Record comments in batch file.
REN Change file name.
RENAME Same as REN.
RMDIR Same as RD.
ROUTE Manipulates Network Routing Tables.
SET Set or list environment variables.
SHIFT Shift arguments of a batch file.
START Start detached process.
TIME Display/change system time.
TITLE Set the window title for a CMD.EXE session.
TRACERT Trace IP packet route.
TYPE Output contents of a file or files to the screen

Gotta assume TRACERT and other networking commands wont work, I understand 1.0 doesn’t have a network stack (that’s gonna take me a while to get used to!).
 Top of the page
Blackfox360 Page Icon Posted 2021-01-29 11:54 PM
#
Avatar image of Blackfox360
H/PC Newbie

Posts:
19
Location:
United States
Status:
Thanks for the response, but I think there is a minor communication error. I'm using BasiCE. It is a basic language application. The I don't think terminal commands are going to work out for me.

To give a little backstory, I created a game on the Commodore 64, nothing fancy, just a simple and short text adventure. I'm attempting to port it over for giggles and grins but i am unable to tell it to clear the screen, so I can have a fresh screen for the next room you enter. Typical code looks like

10 Print "your in a room"
20 print " "
30 print " exits are north and south"
40 input a$
50 if a$= "go north" goto 80
60 if a$= "go south" goto 90
70 print "I don't understand"
75 goto 10
80 print "your in the north room"
90 print "your in the south room"

This is rushed Sudo Code but I hope I kinda cleared the air a bit. The only programing i have really done is basic on the Commodore 64 and i'm trying to work off what i know.
 Top of the page
yeek Page Icon Posted 2021-01-30 12:39 AM
#
Avatar image of yeek
Factor Fanatic

Posts:
57
Location:
Scenic New York
Status:
Ah, my bad! I thought you were just using a clever title for the thread.
 Top of the page
stingraze Page Icon Posted 2021-01-30 12:50 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,679
Location:
Japan
Status:
I found on old thread about CP/M BASIC that an old trick was to PRINT blanks to fill screen.
https://groups.google.com/g/comp.os.cpm/c/irfBOfme-Ac?pli=1

Some related links:
https://en.wikipedia.org/wiki/Clear_(Unix)
https://en.wikipedia.org/wiki/CLS_(command)#BASIC

I will try to get out my Sigmarion 1 and see if BasiCE works on it, and try some commands to help you out.

-stingraze
 Top of the page
Blackfox360 Page Icon Posted 2021-01-30 1:06 AM
#
Avatar image of Blackfox360
H/PC Newbie

Posts:
19
Location:
United States
Status:
It doesn't hurt to have some terminal commands hanging about, And I am appreciative of anyone trying to help.

I thought about creating a subroutine and pointing to it to clear the screen, but that seems like a lot of work for what is a simple command in basic 2.0 The Commodore equivalent is

print chr$(147)

which for giggles and grins I tried, but no luck. If I can't figure it out I might just have to bite the bullet and use a programing language that isn't older then I am lol.... or create that subroutine...

 Top of the page
yeek Page Icon Posted 2021-01-30 1:18 AM
#
Avatar image of yeek
Factor Fanatic

Posts:
57
Location:
Scenic New York
Status:
All I found is that wayback machine never crawled the actual user guide!

https://web.archive.org/web/19990117013146/http://www.jps.net/deang/basice.htm
 Top of the page
stingraze Page Icon Posted 2021-01-30 1:46 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,679
Location:
Japan
Status:
Looking at the source code linked from the site yeek found, there is a clrscr procedure made inside the source code.

Download the code that has the procedure here:
https://web.archive.org/web/19990117013146/http://www.jps.net/deang/sabce10.zip
procedure clrscr 
   print "C"; 
endproc


<0x1b> should be placed before the "C"

I don't know how to input <0x1b> which is an "escape".


you can then call this like:
call clrscr	! To be ensure that the screen is blank 
wait 0.2
call clrscr
wait 0.2
call clrscr

I could also get BasiCE working on my Sigmarion 1. It's pretty fun!

Edited by stingraze 2021-01-30 2:19 AM
 Top of the page
Blackfox360 Page Icon Posted 2021-02-01 7:12 PM
#
Avatar image of Blackfox360
H/PC Newbie

Posts:
19
Location:
United States
Status:
This is Super Awesome. Thanks Guys, this is going to get me down the right path.
 Top of the page
yeek Page Icon Posted 2021-02-02 1:37 AM
#
Avatar image of yeek
Factor Fanatic

Posts:
57
Location:
Scenic New York
Status:
Quote
stingraze - 2021-01-29 8:46 PM

Looking at the source code linked from the site yeek found, there is a clrscr procedure made inside the source code.


Wow, knowing how to read code turned a dead end into the solution, you’ve made learning (at least the fundamentals) look very appealing! I may finally have to crack open one of those O’reilly guides.
 Top of the page
stingraze Page Icon Posted 2021-02-02 6:03 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,679
Location:
Japan
Status:
I'm glad I could help you guys out. Good luck on your programming journey! I think it will be well worth investing your time to it.
 Top of the page
Jump to forum:
Seconds to generate: 0.156 - Cached queries : 67 - Executed queries : 10