flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2, 3, 4 Next |
Author |
|
Picnic
![]() Hobby BASIC is my toy language interpreter written in fasm. It has a BASIC-like syntax with a set of specialized commands and functions. It supports keyboard and mouse, and partially UTF-8 characters. It handles ANSI encoding graphics with ease. It has a small set of UDP network functions. It creates standalone pseudo executables. It runs on Windows 32 or 64 bit. Hobby BASIC project started in 2015 and continues to grow to this day. Slowly, since it is a toy interpreter which I make just for my personal fun. The goal is to make an easy to use language, ideal for making games in the Windows console. Guess what, I think it's going well. Download A Hobby BASIC program. Code: REM TV.BAS REM HOBBY BASIC INTERPRETER A$ = 'N O S I G N A L' DIM A[8] = 15,14,11,10,13,12,9,0 SCREEN 80,25,300 CURSOR 0,0 COLOR 0,0 CLS FOR X = 0 TO 7 COLOR A[X],0 PAINT X*10,0,10,25,-1,-1 NEXT ERASE 17 ERASE 18 ERASE 19 PEN 15 AT 25,18,A$ INKEY CLS : END ![]() How to run the examples. Open the command-line CMD.EXE in the HB folder. To run the TV.BAS example, type: Code: hb EXAMPLES/TV.BAS ![]() Alternatively, simply click HB.EXE and select an example. ![]() How to create the standalone TV.EXE Type at the command-line: Code: hb EXAMPLES/TV.BAS -bind TV.EXE A standalone application will be assembled. ![]() Notes for Windows 10 users. In later versions of Windows you will need to temporary disable real-time protection for Microsoft Defender. Antivirus programs do not like small executable files and often consider them (incorrectly) suspicious. Although Hobby BASIC runs smoothly on Windows 10, however, if you are having difficulties try enabling the legacy option. ![]()
Last edited by Picnic on 25 Apr 2022, 21:02; edited 276 times in total |
|||||||||||
![]() |
|
AsmGuru62
Great stuff!
Things like that motivate beginners to start programming. |
|||
![]() |
|
MHajduk
I suppose that the author's sentiment to QuickBasic was the main inspiration for this project. Nice thing.
![]() |
|||
![]() |
|
typedef
Nice. This prompts me to make a CLI graphics library. Looks pretty neat.
|
|||
![]() |
|
TmX
This is very nice.
Reminiscent of DOS apps. Mouse handling would be a nice addition, I think ![]() |
|||
![]() |
|
HaHaAnonymous
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 20:54; edited 1 time in total |
|||
![]() |
|
typedef
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. |
|||
![]() |
|
Picnic
TmX wrote: Mouse handling would be a nice addition, I think I have uploaded a new version with minor improvements and bug fixes. Mouse support in Windows console is now available. Random colored characters in the console. Code: REM RND.BAS REM HOBBY BASIC INTERPRETER SCREEN 80,25,300 COLOR 0,0 CLS DO X = RND() % 24 + 2 Y = RND() % 14 + 1 C = RND() % 95 + 32 PEN C AT X,Y,CHR(C) UNTIL KEY(27) CLS END ![]() Last edited by Picnic on 27 Apr 2022, 07:49; edited 52 times in total |
|||
![]() |
|
Picnic
I have uploaded a new version with minor improvements and bug fixes.
Get the mouse position in the console. ![]() Last edited by Picnic on 22 Jan 2022, 08:19; edited 43 times in total |
|||
![]() |
|
typedef
I get this when I run MOUSE
![]() |
|||
![]() |
|
Picnic
Thanks for the feedback typedef. Can you please tell me your Windows version and if you tried the rest of the samples?
|
|||
![]() |
|
typedef
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
|
|||
![]() |
|
Picnic
I will look into the problem as soon as i can. I starting to feel a bit outdated with my windows xp 32-bit.
Last edited by Picnic on 15 Dec 2013, 17:35; edited 1 time in total |
|||
![]() |
|
typedef
I see. It's a version difference thing.
|
|||
![]() |
|
Picnic
I think i found what was causing the trouble. Give it a try if you like typedef.
|
|||
![]() |
|
typedef
They work now
![]() |
|||
![]() |
|
Picnic
Nice to hear!
Sure, it seems that an improper call to SetConsoleOutputCP function crush the program. By the way, i installed Windows 7. |
|||
![]() |
|
typedef
Picnic wrote: Nice to hear! Hmm. Nice, what Win7 version? |
|||
![]() |
|
Picnic
I have uploaded a new version with minor improvements and bug fixes.
A Tetris game for the console. This is the first Hobby BASIC game ever made, and is still working today. ![]() Last edited by Picnic on 27 Apr 2022, 07:49; edited 38 times in total |
|||
![]() |
|
Goto page 1, 2, 3, 4 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.