flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4 |
Author |
|
revolution 19 Jan 2021, 22:26
Running unaudited code directly from the Internet.
Nothing could possibly go wrong. ![]() |
|||
![]() |
|
DimonSoft 20 Jan 2021, 14:21
Guys, please, don’t say a word about JS
![]() |
|||
![]() |
|
Picnic 22 Jan 2021, 13:12
I can't do much at the moment other than leave it as is, or disable it.
![]() There's more ways to the interpreter for the downloading and running a program located on a remote server. Code: url$ = 'https://sites.google.com/site/hobbybasicfiles/TEST.BAS' Code: load url$,1 if V0 = -1 then ? 'load error' : end run 'TEST.BAS' or even Code: run url$ get the source code Code: a$ = GETSRC(url$) I have uploaded a new version with minor improvements and bug fixes. A console breakout game (with sounds) included in the examples. ![]() Last edited by Picnic on 22 Jan 2022, 08:39; edited 4 times in total |
|||
![]() |
|
Picnic 02 Jul 2021, 09:42
Hi all,
I have uploaded a new version with minor improvements and bug fixes. Smaller executable size. The wait command return to milliseconds. The time measurement in microseconds was abandoned. The SPC() function has been removed since the more flexible GEN() function now exists. Improved error messages. A point that I have neglected and HB suffers from. It still needs work but it's much better now. Small internal changes made the interpreter some ms faster overall in my measurements. Minor bug fixes. The interpreter works consistently on Windows XP, 7 and 10. Includes all programs presented in previous posts. The previous version of the Trim(string$) funtion was removing the whitespace and newline characters (0x9,0x20,0xA,0xD) simultaneously left and right on a string but without the option to select a side. The new syntax of the command is Trim(n,string). The values obtained by the variable n are 0, 1 and 2, for TrimLR, TrimL and TrimR respectively. Enum command is also added. More information and examples have been added to the README file. 9/7/2021 - A silent update to version 1.2.1 concerning a fix at the internal ANSI interpreter module. A new command SCROLL is now available which scrolls the console screen buffer up or down, plus some new code examples. 18/7/2021 - A silent update to version 1.2.3. Small internal changes increase stability in Windows 10. Hobby BASIC now runs better on newer versions of Windows, but remains just as functional on XP. The version additions concern the SET command and a new function MATCH (arg, arg_list, ...). More demos has been added and the README file updated with the latest information. 8/8/2021 - A silent update to version 1.2.4. Passing arguments by reference is now possible. To pass an argument by reference, use 'byref' keyword before the argument on the subroutine call. Still under testing though. Also, some bug fixes made. Passing arguments by value and by reference. Code: sub foo(var,string$,array[]) ends foo(x,a$,a[]) ! by value foo(byref x, byref a$, byref a[]) ! by reference Passing arguments by value and by reference example. Code: a = 100 b = 200 print "Before swap, value of a: ",a print "Before swap, value of b: ",b swap(byref a, byref b) print "After swap, value of a: ",a print "After swap, value of b: ",b end sub swap(x,y) local temp temp = x x = y y = temp ends Select..Case..Endsel has been added. Code: x = 1 select x case 1: ? "Choice is 1" case 2: ? "Choice is 2" case 3: ? "Choice is 3" case : ? "Choice is other than 1,2, or 3" endsel Text Draw was updated in version 0.5 after some time. It now works more stable (especially in Windows 7) and some new features have been added. I will show you what it can do now. I am opening an ANSI file. We can paint using the character set. We can change the colors of the image, rotate image, cut it into pieces. Make copies of the pieces, or insert a new image. Open long static ANSI images switching from one frame to another. Text Draw converts an ANSI image to .HB format (always the screen we see) and saves 2 files. One in the dimension 80x50 and one smaller in the dimension 80x25 (the classic size of the old ANSI files). ![]() ![]() Pressing F10 the interpreter does the conversion and exports a loader script. ![]() Bugs and small problems exist. I used google translate. Last edited by Picnic on 27 Apr 2022, 08:06; edited 14 times in total |
|||
![]() |
|
pabloreda 03 Jul 2021, 00:05
Very nice project picnic!
congrat! |
|||
![]() |
|
Picnic 14 Feb 2022, 11:48
pabloreda wrote: Very nice project picnic! Thank you pabloreda. Note for everyone, I will continue to update the interpreter, but I will stop adding new posts here. |
|||
![]() |
|
Picnic 30 Nov 2022, 10:01
Hello,
This is an arcade puzzle game I wrote in Hobby BASIC. The aim is to click 4 tiles of the same color and form squares or rectangles as big as you can. All the tiles that are inside your rectangle will get erased and replaced by new random tiles. You will get more points for making bigger squares but hurry up, you have limited time to get a high score. Left Click on four same colored tiles to make a square or a rectangle. Press Spacebar to get a new board anytime during the game. new Press Esc to return to the menu, Q to quit. ![]() |
|||
![]() |
|
Picnic 27 Dec 2022, 14:17
I just added a new example.
LEDIX is a Sokoban-style game. Your goal is to push the blue orbs into the marked positions. Small levels but can be delightfully tricky and surprisingly difficult to solve. Use keyboard arrows to move, every room has a solution, remember that! Press 1 to skip to next room, 2 for previous room. Press spacebar to reset current room. ![]() |
|||
![]() |
|
Picnic 12 Jan 2023, 09:55
Hello, happy new Year to all forum members.
I just added a new example. The game works with the latest version of the Interpreter. Colorsok is a clone of an old Sokoban-style java game called 'Socolor' Blocks of the same color need to be pushed all together. Use keyboard arrows to move. Press spacebar to reset current room. Press 1 to skip to next room. Press 2 for previous room. Press 4 to undo a move. ![]() Last edited by Picnic on 24 Jan 2023, 12:55; edited 1 time in total |
|||
![]() |
|
al_Fazline 12 Jan 2023, 15:08
Hello, Picnic. Is there a way to run it on GNU+Linux without wine/emulation? Windows is kinda dated by now, people are switching away from it.
|
|||
![]() |
|
Picnic 13 Jan 2023, 08:05
Hello al_Fazlinem
I'm afraid (i think) that is not possible, Hobby BASIC oriented exclusively to Windows, it heavily uses Windows console functions. |
|||
![]() |
|
Picnic 23 Jan 2023, 14:48
Hello,
I just added a new example. The game works with the latest version of the Interpreter. D-Star is a clone of an old puzzle game originally written for TI-83/84 calculator. The object of the game is to collect the yellow diamonds. You move all the way to the next wall with every move. You may use spacebar to switch your place with the red block. Try to clear the board in the least number of moves. You have 1024 moves limit to complete 10 mazes. Use keyboard arrows to move. Press spacebar to switch. Press 1 to restart room. ![]() 11/3/2023 Hello, Today I added a new example, it's a simple SAME game for Windows console, play with mouse. The game works with the latest version of the Interpreter. Move fast and make bunches of same colors. Left click to replace a tile with its neighbor. Right spacebar to collect colored bunches. Press 1 to reset the board. ![]() ![]() 27/3/2023 Hello, Today I added a new example, it's a simple Lights Out game for Windows console, play with mouse. The game works with the latest version of the Interpreter. The game consists of a 5 by 5 grid of lights. When the game starts, a stored pattern of these lights is switched on. Clicking any of the lights will toggle it and the adjacent lights. The goal is to switch all the lights off, preferably in as few clicks as possible. Press spacebar to reset current stage. Press 1 to (circular) skip to next stage. ![]() |
|||
![]() |
|
Goto page Previous 1, 2, 3, 4 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.