Information Technology - Computer Programming - Source Code - Homebrew - Open Source - Software - Hardware - 8 bit - 16 bit - 32 bit - 64 bit - x86 - x64 - DOS - Windows - Linux - Arduino - Embedded - Development - Retro - Vintage - Math - Science - History - Hobby - Beginners - Professionals - Experiment - Research - Study - Fun - Games

Net Basic update thread

Anything PHP/SQL related.
Post Reply
admin
Site Admin
Posts: 103
Joined: Wed Feb 22, 2023 6:51 am

Net Basic update thread

Post by admin »

I realized there's no update thread. Until now, it has been worked on mostly in silence.
Most efforts have been put into Express BASIC lately, but I am still dedicated to updating Net Basic.

While working on Express BASIC, I found an issue with handling of negation. After fixing the issue, I have been updating all of our products including Net Basic and RP1.

Here's the updates we have made to Net Basic for now.

Improved handling of negation.
Added TAB() and CHR$() functions. (CHR$() is really important for nesting quotes when writing HTML, CSS, or other non Basic data.)
Added a new example.

The new example... really demonstrates the POWER of Net Basic!

Code: Select all

1 REM ported to Net Basic
2 REM from the DTSS emulator manual A BASIC OUTLINE
3 PRINT "Plot a happy little normal distribution curve"
4 HTML
5 PRINT "<div style = 'text-align: left;'>"
10 FOR x = -2 TO 2 STEP .1
30 PRINT TAB(INT(100 * (EXP(-(x ^ 2 / 2)) / SQR(2 * PI))));
31 GOSUB INT(RND * 10) * 10 + 50
32 PRINT "<br />"
40 NEXT x
45 PRINT "</div>
46 END
50 PRINT "πŸ™‚"
55 RETURN
60 PRINT "πŸ˜€"
65 RETURN
70 PRINT "πŸ˜‚"
75 RETURN
80 PRINT "πŸ˜ƒ"
85 RETURN
90 PRINT "πŸ˜„"
95 RETURN
100 PRINT "πŸ˜…"
105 RETURN
110 PRINT "πŸ˜‰"
115 RETURN
120 PRINT "πŸ˜†"
125 RETURN
130 PRINT "😊"
135 RETURN
140 PRINT "😎"
145 RETURN
Try it here: https://www.lucidapogee.com/netbasic/?l ... TURN%0D%0A
Post Reply