flat assembler
Message board for the users of flat assembler.

flat assembler > Examples and Tutorials > Hobby Basic for Windows

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16140
Location: Hyperborea
filox wrote:
Sorry but where i can find sources of Hobbybasic?
Have a look at the first post in this thread.
Post 21 Oct 2016, 12:13
View user's profile Send private message Visit poster's website Reply with quote
system error



Joined: 01 Sep 2013
Posts: 671
This is good. Keep it coming, bro!
Post 22 Oct 2016, 13:32
View user's profile Send private message Reply with quote
filox



Joined: 13 Feb 2013
Posts: 10
revolution wrote:
filox wrote:
Sorry but where i can find sources of Hobbybasic?
Have a look at the first post in this thread.


No source, only EXE and Demo.bas
Post 26 Oct 2016, 12:24
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7797
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
hi filox,
you could try pm picnic for source etc
Post 26 Oct 2016, 12:36
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1258
Location: In a West End town
Hi filox, the source is not available, at least not yet. Hobby Basic has still some way to go. I want to extend the command list, find methods to make the intepreter faster, add features like user procedures with parameters and local variables and some other ideas i have. This is done somewhat slowly, the only days i can steal some time to work are the weekends.
Post 26 Oct 2016, 13:37
View user's profile Send private message Reply with quote
filox



Joined: 13 Feb 2013
Posts: 10
Picnic wrote:
Hi filox, the source is not available, at least not yet. Hobby Basic has still some way to go. I want to extend the command list, find methods to make the intepreter faster, add features like user procedures with parameters and local variables and some other ideas i have. This is done somewhat slowly, the only days i can steal some time to work are the weekends.


Hi picnic, if u can share code with us, we can help you possibly to improve it faster and i'm interested in it for educational scope Very Happy
Post 18 Nov 2016, 13:19
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1258
Location: In a West End town
Quote:
...and i'm interested in it for educational scope

Take a look at MINI-BASIC for fasm. It's a piece of code available for modifications.
Post 21 Nov 2016, 15:50
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1258
Location: In a West End town
I have uploaded a new version with bug fixes and various internal tweaking.

The fix directive causes simple text replacement in the source code, while the
include directive inserts the contents of another file into the source code.
Both functions are performed before the program is executed.
Code:
    waitForKey fix inkey

    waitForKey

    include "EXAMPLES\DEMO.bas"
    


Last edited by Picnic on 06 Dec 2018, 19:44; edited 18 times in total
Post 21 Dec 2016, 12:34
View user's profile Send private message Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 169
Location: Madrid - Spain
Hello, it is very interesting. I was very fond of qbasic. I'd just say that it would be nice to see your page in English, Greek is a bit hard for me Smile
Post 21 Dec 2016, 13:20
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1258
Location: In a West End town
Hobby Basic includes an embedded ANSI file loader that recognizes
standard ANSI.SYS escape codes for colours and cursor movement.
The following example is an ANSI text file viewer.

Code:

    rem  ANSI Text File Viewer

    a = 1                                ! autoplay slideshow 0/1
    s = 20                               ! drawing text speed
    m = 250                              ! max files in folder
    d = 2000000                          ! delay between images
    dim ext$[2] = ".ans" , ".asc"        ! valid extensions
    path$ = PATH(1)+"\ART\"              ! path to ART folder
    cmd$ = "dir "+path$+" /b"

    exec cmd$,dir$
    screen 80,30
    cursor 0,0

    loop#

    c = 0
    for n = 1 to m
        a$ = READLN(n,dir$)
        if V0 = -1 then break
        a$ = path$ + a$
        if check(a$)
            title a$
            color 0,0 : cls
            ansi s,a$
            if KEY(27) then end
            if a then wait d else inkey
            c = c + 1
        endif
    next

    if c = 0 then alert "ANSI files not found":end
    goto loop


sub check(a$)
    local i

    for i = 0 to SIZE(ext$[])-1
        if COMP(LCASE(RIGHT(a$,4)),ext$[i]) = 1 then rets 1
    next i

    rets 0
ends
    
Post 28 May 2018, 13:49
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

< 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-2018, Tomasz Grysztar.

Powered by rwasa.