flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Hobby BASIC, a simple yet powerful BASIC interpreter

Goto page 1, 2, 3, 4, 5, 6, 7  Next
Author
Thread Post new topic Reply to topic
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 05 May 2013, 21:16
Image

What is Hobby BASIC?
Hobby BASIC is a modern, structured BASIC interpreter for the classic Windows console (CMD.EXE),
combining retro simplicity with ANSI graphics, UDP networking, and direct Win32 API access —
packed into a tiny ~78 KB executable written in 32-bit x86 assembly (FASM).

Key Features:
🔹Structured BASIC syntax with console & graphics commands
🔹Full keyboard & mouse input inside the Windows console
🔹High-compatibility ANSI X3.64/ECMA-48 terminal emulation
🔹Built-in array undo stacks (.PUSH / .POP), circular stack, and user-defined TYPEs
🔹UDP peer-to-peer networking & remote script execution over HTTP
🔹FPU string math & direct Win32 API / GDI calls via SYSCALL
🔹Standalone executable builder (-bind .BAS into .EXE)
🔹Maintained for 10+ years — runs cleanly on Windows 7–11
🔹Developed in 32-bit x86 assembly

Included Tools & Collection (50,000+ lines of code):
🎨 ANSI Art Studio v0.9.7 — Full-featured ANSI graphics editor
written in Hobby BASIC (multi-frame, custom RGB, export to .BAS).

🛠 Super Tiny BASIC v1.24 — Classic '80s-style BASIC (~900 lines)
with full source code included.

🎮 80+ Complete Console Games & Demos — Puzzle games, arcade ports,
Win32 GDI graphics, FPU plotters, and UDP multiplayer examples.

▶ Download Hobby BASIC — Version: 2.6.9 (November 2026)

Note: Unsigned small assembly executable; may trigger minor false positives
in some antivirus tools, but it is 100% clean and safe.


▶ Aug/Sep/Oct/Nov 2026 New Game Releases

Useful Links:
🔹 Online Guide
🔹 Full Feature Overview
🔹 YouTube Video Tour
🔹 Chrome / Windows 11 Setup

Showcase
From concept to console: A showcase of Hobby BASIC game development through the years,
featuring ANSI graphics 📌 Notes on the games.

Image


Description: Hobby BASIC, a simple but surprisingly capable BASIC interpreter, developed in 32-bit x86 assembly.
Download
Filename: HB.zip
Filesize: 914.82 KB
Downloaded: 8570 Time(s)



Last edited by Picnic on 22 Nov 2026, 19:18; edited 571 times in total
Post 05 May 2013, 21:16
View user's profile Send private message Visit poster's website Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1837
Location: Toronto, Canada
AsmGuru62 05 May 2013, 22:15
Great stuff!
Things like that motivate beginners to start programming.
Post 05 May 2013, 22:15
View user's profile Send private message Send e-mail Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6113
Location: Poland
MHajduk 05 May 2013, 22:28
I suppose that the author's sentiment to QuickBasic was the main inspiration for this project. Nice thing. Smile
Post 05 May 2013, 22:28
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 07 May 2013, 04:31
Nice. This prompts me to make a CLI graphics library. Looks pretty neat.
Post 07 May 2013, 04:31
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 07 May 2013, 10:10
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 09:59; edited 42 times in total
Post 07 May 2013, 10:10
View user's profile Send private message Visit poster's website Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 846
Location: Jakarta, Indonesia
TmX 07 May 2013, 15:45
This is very nice.
Reminiscent of DOS apps.

Mouse handling would be a nice addition, I think Wink
Post 07 May 2013, 15:45
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 07 May 2013, 20:58
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 20:54; edited 1 time in total
Post 07 May 2013, 20:58
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 07 May 2013, 23:30
Picnic wrote:
I am glad you like it, i had some concern whether it can be served as helpful example despite the lack of comments in source.


If it can be understood then no worries.

Besides not all examples are aimed at beginners.
Post 07 May 2013, 23:30
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 18 Aug 2013, 22:52
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 09:59; edited 68 times in total
Post 18 Aug 2013, 22:52
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 15 Dec 2013, 01:37
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 09:59; edited 58 times in total
Post 15 Dec 2013, 01:37
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 15 Dec 2013, 05:58
I get this when I run MOUSE

Image
Post 15 Dec 2013, 05:58
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 15 Dec 2013, 10:10
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 09:59; edited 15 times in total
Post 15 Dec 2013, 10:10
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 15 Dec 2013, 14:27
Windows 7 64 bit. Actually all the programs except the binary and the the color ones. And why it says print I don't know
Post 15 Dec 2013, 14:27
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 15 Dec 2013, 17:28
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 10:00; edited 14 times in total
Post 15 Dec 2013, 17:28
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 15 Dec 2013, 17:34
I see. It's a version difference thing.
Post 15 Dec 2013, 17:34
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 18 Dec 2013, 21:33
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 10:00; edited 12 times in total
Post 18 Dec 2013, 21:33
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 18 Dec 2013, 22:53
They work now Very Happy. Care to share what was causing it to say that?
Post 18 Dec 2013, 22:53
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 19 Dec 2013, 21:09
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 10:00; edited 12 times in total
Post 19 Dec 2013, 21:09
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2893
Location: 0x77760000
typedef 20 Dec 2013, 01:13
Picnic wrote:
Nice to hear!
Sure, it seems that an improper call to SetConsoleOutputCP function crush the program. By the way, i installed Windows 7.


Hmm. Nice, what Win7 version?
Post 20 Dec 2013, 01:13
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1483
Location: Piraeus, Greece
Picnic 20 Dec 2013, 20:37
Post removed by author.

_________________
Hobby BASIC Interpreter


Last edited by Picnic on 27 Apr 2026, 10:00; edited 50 times in total
Post 20 Dec 2013, 20:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3, 4, 5, 6, 7  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.