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  Next
Author
Thread Post new topic Reply to topic
Picnic



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

Hobby BASIC, a simple but surprisingly capable BASIC interpreter, developed in 32-bit x86 assembly.
Now with 35,000+ lines of polished game code and examples.

Watch a full video tour on YouTube to see Hobby BASIC in action.

🔹BASIC-like syntax with rich collection of specialized commands
🔹Full keyboard & mouse input in console
🔹ANSI-encoded graphics support
🔹UDP networking functions
🔹Standalone pseudo-executables
🔹Windows XP/7/10/11 compatible
🔹Draw - ANSI drawing tool fully written in Hobby BASIC
🔹FPU string math & Win32 API support
🔹Super Tiny BASIC included with full source code
🔹Runs flawlessly for 10+ years across Windows 7, 8, 10, and 11

My goal has always been to create a simple, user-friendly language
designed for game development within the Windows console—and I believe it's progressing quite well!

Hobby BASIC is a small, unsigned executable.
Although some antivirus tools might falsely flag it due to its small size and lack of a digital signature, rest assured that it is 100% safe to use.

Current version: 2.5.4 (uploaded March 2026).

Download


Hobby BASIC made easy: dive in with the Get Started guide.

Download blocked in Chrome? Read this.


🧩 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: 769.76 KB
Downloaded: 7633 Time(s)



Last edited by Picnic on 11 Mar 2026, 22:24; edited 494 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: 1781
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: 1453
Location: Piraeus, Greece
Picnic 07 May 2013, 10:10
Code:
    ! ----------------------------------------------------------------------------------------
    !  BINDI.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Original puzzle game where you control red tiles that move as one group.
    !  Create chain reactions - when red touches blue, they bind together.
    !  Strategically convert all blue tiles to red to solve each puzzle.
    !
    !  Controls:
    !  - Arrow Keys: Move all red tiles as a group
    !  - Space: Restart current level
    !  - 1: Previous level
    !  - 2: Next level
    !  - 4: Undo last move
    !  - ESC: Exit game
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:03; edited 35 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: 845
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: 1453
Location: Piraeus, Greece
Picnic 18 Aug 2013, 22:52
Code:
    ! ----------------------------------------------------------------------------------------
    !  BLOCKTRIX.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Puzzle game where you create paths between colored blocks.
    !  Connect the starting (yellow) block to the finishing (white) block
    !  using various special blocks, each with unique mechanics.
    !
    !  Controls:
    !  - Arrow Keys: Navigate and select blocks
    !  - Space: Restart current level
    !  - 1: Previous level
    !  - 2: Next level
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:06; edited 62 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: 1453
Location: Piraeus, Greece
Picnic 15 Dec 2013, 01:37
Code:
    ! ----------------------------------------------------------------------------------------
    !  CAKE.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Short puzzle game where John moves boxes to reach and eat cake.
    !  Switch between different player modes to solve each level.
    !
    !  Controls:
    !  - Arrow Keys: Move John
    !  - Space: Change player mode
    !  - Enter: Restart level
    !  - 1: Previous level
    !  - 2: Next level
    !  - 4: Undo move
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:09; edited 51 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: 1453
Location: Piraeus, Greece
Picnic 15 Dec 2013, 10:10
Code:
    ! ----------------------------------------------------------------------------------------
    !  CLONING.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Puzzle game where you must cover all red crosses using cloning mechanics.
    !  Strategic thinking required to solve each cloning challenge.
    !
    !  Controls:
    !  - Arrow Keys: Move and clone
    !  - Space: Restart level
    !  - 4: Undo move
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:11; edited 8 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: 1453
Location: Piraeus, Greece
Picnic 15 Dec 2013, 17:28
Code:
    ! ----------------------------------------------------------------------------------------
    !  CRUSH.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Puzzle game inspired by Mandy Crush.
    !  Solve challenging puzzles by matching elements.
    !
    !  Controls:
    !  - Arrow Keys: Navigate and play
    !  - Space: Restart level
    !  - 1: Previous level
    !  - 2: Next level
    !  - 4: Undo move
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:13; edited 8 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: 1453
Location: Piraeus, Greece
Picnic 18 Dec 2013, 21:33
Code:
    ! ----------------------------------------------------------------------------------------
    !  ICYBLOCKS.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Fun puzzle game where you push boxes, seal holes, and reach the goal!
    !  Navigate icy challenges in this slippery block-pushing adventure.
    !
    !  Controls:
    !  - Arrow Keys: Push boxes and navigate
    !  - Space: Restart level
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:15; edited 8 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: 1453
Location: Piraeus, Greece
Picnic 19 Dec 2013, 21:09
Code:
    ! ----------------------------------------------------------------------------------------
    !  GRAVIBOX.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  CONTROLS
    ! ----------------------------------------------------------------------------------------
    !
    !  - Arrow Keys: Play
    !  - Space: Restart level
    !  - 1: Previous level
    !  - 2: Next level
    !  - 4: Undo move
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:17; edited 6 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: 1453
Location: Piraeus, Greece
Picnic 20 Dec 2013, 20:37
Code:
    ! ----------------------------------------------------------------------------------------
    !  DSTAR.BAS
    !  Hobby BASIC Interpreter
    !  Example program from the Hobby BASIC collection
    !
    ! ----------------------------------------------------------------------------------------
    !  GAME DESCRIPTION
    ! ----------------------------------------------------------------------------------------
    !
    !  Puzzle game where you collect all yellow diamonds by sliding until you hit walls.
    !  Each move travels all the way to the next wall.
    !  Swap places with block tiles strategically to solve each maze.
    !  Complete 10 mazes within 1024 total moves for maximum efficiency.
    !
    !  Controls:
    !  - Arrow Keys: Slide until hitting walls
    !  - Space: Swap places with block tile
    !  - 1: Restart current maze
    !
    ! ----------------------------------------------------------------------------------------
    


Windows 11 console screenshot.

Image


Last edited by Picnic on 18 Mar 2026, 21:20; edited 45 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  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.