mirror of
https://github.com/adamdunkels/ubasic.git
synced 2026-11-20 11:39:43 +00:00
Update make file to output ubasic.exe
Standardise output to be ubasic
This commit is contained in:
parent
e7fc68e89e
commit
7db3e7fe76
2 changed files with 2 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
cl run-ubasic.c ubasic.c tokenizer.c
|
||||
cl /Feubasic run-ubasic.c ubasic.c tokenizer.c
|
||||
1
test-string.bas
Normal file
1
test-string.bas
Normal file
|
|
@ -0,0 +1 @@
|
|||
1 print "start of test"
2 a$= "abcdefghi"
3 b$="123456789"
5 print "Length of a$+", len(a$)
6 print "Length of b$=", len(b$)
7 if len(a$) = len(b$) then print "same length"
8 if (a$ = b$) then print "same string"
9 c$=left$(a$+ b$,12)
10 print c$
11 c$=right$(a$+b$, 12)
12 print c$
13 c$=mid$(a$+b$, 8,8)
14 print c$
15 c$=str$(13+42)
16 print c$
17 print len(c$)
18 print len("this" + "that")
19 c$ = chr$(34)
20 print c$
21 j = asc(c$)
22 print j
23 print val("12345")
24 i=instr(3, "123456789", "67")
24 print "position of '67' in '123456789' is", i
25 print mid$(a$,2,2)+"xyx"
30 print "end of test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue