flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Hobby Basic, a toy language interpreter written in fasm

Goto page Previous  1, 2, 3, 4  Next
Author
Thread Post new topic Reply to topic
MajorDill



Joined: 01 Nov 2010
Posts: 22
MajorDill
when I click on download nothing is there. Just learning fasm and could really use these examples.

begging somebody to repost them

thankyou
Post 26 Apr 2014, 18:04
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
Hi MajorDill,

Sorry about this. I'm building my website but it will take me longer than expected. See the 1st post.


Last edited by Picnic on 29 Aug 2014, 19:32; edited 2 times in total
Post 26 Apr 2014, 21:40
View user's profile Send private message Reply with quote
MajorDill



Joined: 01 Nov 2010
Posts: 22
MajorDill
got it - thanks
Post 28 Apr 2014, 14:01
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version numbering changes from 0.0.4 to 0.4.0.

Hobby Basic Version 0.4.0

Xs and Os game that plays with the mouse in the console.

Image


Last edited by Picnic on 11 Jul 2021, 00:05; edited 83 times in total
Post 31 Jul 2015, 06:16
View user's profile Send private message Reply with quote
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie
I love this stuff. Excellent materials for beginners to learn from (although there's nothing 'beginners' with the code)
Post 01 Aug 2015, 02:54
View user's profile Send private message Visit poster's website Reply with quote
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie
I am linking to this thread.
Post 01 Aug 2015, 03:10
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
@fasmnewbie thank you.

I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.4.2

Hobby Basic handles ANSI encoding graphics with ease.

Loading an ANSI encoded text file is a very simple process.
Code:

    rem  APPLE1.BAS
    rem  Hobby Basic Interpreter

    path$ = PATH('EXAMPLES\ART\APPLE.ANS')

    if SIZE(path$) = -1 then alert 0x10,'Not found',path$ : end

    screen 80,25
    cursor 0,0
    color 0,0
    cls

    ansi path$

    inkey

    cls : end
    

Image


Last edited by Picnic on 11 Jul 2021, 00:06; edited 56 times in total
Post 02 Aug 2015, 11:15
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.5.0

Hobby Basic comes with a set of specialized console commands.

The command BLOCK copies a specific area of the console screen to a memory block and vice versa.
Code:

    rem  APPLE2.BAS
    rem  Hobby Basic Interpreter

    A = 700
    B = 701

    path$ = PATH('EXAMPLES\ART\APPLE.ANS')

    if SIZE(path$) = -1 then alert 0x10,'Not found',path$ : end

    screen 80,25
    cursor 0,0
    color 0,0
    cls

    ansi path$

    ! split screen to blocks A and B
    block 0,0,40,25,A
    block 40,0,40,25,B

    ! copy blocks to screen
    block 0,0,B
    block 40,0,A

    inkey

    cls : end
    

Image


Last edited by Picnic on 23 Jul 2021, 21:41; edited 52 times in total
Post 12 Aug 2015, 09:43
View user's profile Send private message Reply with quote
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie
Picnic

It would be very nice if you could share your passion with Tomasz and others at Programming Language & Design section where you can properly introduce your Hobby Basic to the community. Good to see FASM is becoming a language of choice for compiler writing.
Post 12 Aug 2015, 12:43
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
@fasmnewbie I feel it's still early for that. The interpreter is far for being complete. Surely i might do that, but in later time.

I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.5.1

Using the BLOCK command is easy to randomly shuffle the console screen.

Image


Last edited by Picnic on 23 Jul 2021, 21:42; edited 39 times in total
Post 15 Aug 2015, 22:13
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.5.2

Hobby Basic version of the puzzle game 2048.

Image


Last edited by Picnic on 11 Jul 2021, 00:00; edited 52 times in total
Post 03 Sep 2015, 14:45
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.5.6

Replacing color 12 (bright blue) with color 13 (bright purple) at a specific area of the screen using the REPAINT command.
Code:

        x=0
        y=0
        cols=40
        rows=25

        cls
        screen 80,25
        ansi 'EXAMPLES\ART\APPLE.ANS'
        repaint x,y,cols,rows,12,13
        inkey
        cls
    

Image


Last edited by Picnic on 06 Jul 2021, 13:03; edited 62 times in total
Post 09 Oct 2015, 06:27
View user's profile Send private message Reply with quote
SergeASM



Joined: 13 Nov 2015
Posts: 21
SergeASM
In the file Console.asm I see "Copyright © 2013-2015, Nick Kouvaris". Is this the same Nick Kouvaris, which did flash games on lightforce.freestuff.gr?

Serge
Post 20 Nov 2015, 10:21
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
Hi SergeASM,

Yes that's me, nice of you to ask.
Post 20 Nov 2015, 11:34
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.6.9

An ANSI Encoding Text File Viewer written in Hobby Basic.
Code:

    rem  AVIEW.BAS
    rem  Hobby Basic Interpreter
    rem  ANSI Encoding Text File Viewer
    rem  Add more ANSI files into folder EXAMPLES/ART

    SPEED = 5
    AUTO_PLAY = 1
    MAX_FILES = 100

    q$ = CHR(0x22)
    a$ = '' : list$ = '' : count = 0
    Esc  fix  IF KEY(27) THEN END

    path$ = PATH('EXAMPLES\ART\')
    cmd$ = 'DIR /B ' + q$ + path$ + q$

    exec cmd$,dir$

    ! get the ANSI names
    for n = 1 to MAX_FILES
        a$ = UCASE(TRIM(0,GETLN(n,dir$)))
        if V0 = -1 then break
        if COMP(RIGHT(a$,4),'.ANS') = 1
            list$ = list$ + path$ + a$ + EOL$
            count = count + 1
        endif
    next

    if count = 0 then ? 'ANSI art not found' : pause : end

    screen 80,40,1000
    cursor 0,0
    color 0,0
    cls

    n = 1


FOREVER#

    a$ = GETLN(n,list$)
    if V0 <> -1
        cls
        title a$
        ansi a$,SPEED
    endif

    Esc

    n = n + 1
    if n > count then n = 1

    if AUTO_PLAY = 0 then inkey else wait 2000

    goto FOREVER
    

Image


Last edited by Picnic on 12 Jul 2021, 21:10; edited 53 times in total
Post 11 May 2016, 11:08
View user's profile Send private message Reply with quote
redrum88



Joined: 30 Mar 2016
Posts: 5
redrum88
Very nice, thanks!
Post 19 May 2016, 00:25
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.7.3

2D Side Movement. Use the Arrow keys to move the sprite.

Image


Last edited by Picnic on 11 Jul 2021, 00:08; edited 58 times in total
Post 14 Jun 2016, 10:08
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.7.5

2D Scrolling Background. Use the Arrow keys to move the sprite. Press Spacebar to jump.

Image


Last edited by Picnic on 11 Jul 2021, 00:09; edited 61 times in total
Post 07 Aug 2016, 09:10
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1296
Location: Paradise Falls
Picnic
I have uploaded a new version with minor improvements and bug fixes.

Hobby Basic Version 0.7.6

Simple car game that uses RGB colors in the Windows 7 console.

Image


Last edited by Picnic on 11 Jul 2021, 00:01; edited 37 times in total
Post 21 Oct 2016, 08:41
View user's profile Send private message Reply with quote
filox



Joined: 13 Feb 2013
Posts: 11
filox
Sorry but where i can find sources of Hobbybasic?
Post 21 Oct 2016, 11:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4  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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.