Browse Search Popular Register Upload Rules User list Login:
Search:
Algodoo BASIC - AHOX Lithium PC

Image:
screenshot of the scene

Author: Little

Group: Default

Filesize: 178.35 kB

Date added: 2023-05-26

Rating: 6.1

Downloads: 11325

Views: 1211

Comments: 35

Ratings: 3

Times favored: 1

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is a scene me and some of my friends have been working on for a couple of months now.

This computer is a full-blown BASIC interpreter!
It runs a special in-house dialect of BASIC known as AHOX Basic.

For those of you who don't know what BASIC is, it is an ancient family of high-level languages for hobby-grade computers that was popular in the 70s and 80s.

AHOX Basic is heavily inspired by Microsoft BASIC, the type of BASIC that ran on the 8-bit Commodore machines. (PET, VIC-20, 64, etc)

It has its fair share of differences from Microsoft BASIC or any other BASIC dialect, and as such there is a programming manual along with sample programs in the scene.

The computer has a built-in text editor, however it's inconvenient to use because it was built to tailor around the fact that we can't use the space bar.

The computer comes with a BASIC interpreter, some settings, and a basic IDE (no pun intended!).



While the computer does come with an IDE, I recommend that, for writing programs, you use an external text editor. To do this you can take a BDisk and move the cover to the back layer. The filament should be exposed and you can manually edit the text in another program like Notepad++. Once you are done writing your program, simply move the cover back to the front layer.

I have conveniently grouped the cover's objects to make this process easier. I regret not doing this on my previous computers' disks, however it's better late than never.

To use the computer itself is quite straightforward and is similar to my older Algodoo computers, although being a more complex computer this computer has a couple more tricks up its sleeve.


When you start the scene, the computer should have a green light on and a BDisk titled "Lithium Manual" inserted.

This green light is the power button. Clicking it will toggle the computer's power, and its current color determines the state of the system - Solid green means it's up and running!

The light next to the power button is just the disk activity light. It's not very important, it's primarily there for realism and decoration, much like the fan.

Unlike my previous computers, the disks to this computer only have 1 filament in them, so inserting them either way into the disk slot will work. Hooray!



Just a random fun fact by the way - I was originally planning to make the text colored! I tried it using markup, however updating the screen soon became very laggy if a lot was onscreen.

By the looks of things this is an issue on Algodoo's end - I have used diagnostic tools (the numpad - key) and I noticed that Algodoo was lagging because it was attempting to draw the text, and not because it was trying to run my poorly optimized code.

That's obviously not to say the computer isn't laggy - my code is nowhere near perfect.:P

Alright. This scene was a thrill to make, and I seriously hope you enjoy it.

There's further instructions, including a programming manual and a rundown of how the processor works in the scene.

Also a quick warning: The amount of text in this scene has caused Algodoo to run out of memory for me a few times.
I recommend that you remove disks after you have used them or don't plan to use them again.

As well, you can save the contents of the Ab Manual disk in a text editor to get it out of Algodoo as it's 11KB.

2009 - 2023 AHOX
If you reupload this scene or parts of it, please provide credit to AHOX and Little.

UPDATE: Fixed a bug in BoltOS and removed clouds
Last edited at 2023/05/26 18:58:12 by Little
Please log in to rate this scene
edit
Similar scenes
Title: Programs for the AHOX Basic Computers.
Rating: 5.625
Filesize: 33.58 kB
Downloads: 396
Comments: 5
Ratings: 2
Date added: 2024/04/21 17:21:55
Made with: Algodoo v2.2.3
Rating: rated 5.6
download
Title: AHOX Project Jinx
Rating: 5
Filesize: 262.33 kB
Downloads: 316
Comments: 8
Ratings: 1
Date added: 2024/04/12 16:12:48
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Proving that converting X-disks is hard
Rating: 5
Filesize: 137.81 kB
Downloads: 695
Comments: 9
Ratings: 1
Date added: 2024/02/22 17:54:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: My AHOX Computer with Bluetooth and floppy format
Rating: 7.2857
Filesize: 92.23 kB
Downloads: 1706
Comments: 11
Ratings: 8
Date added: 2009/09/29 19:26:17
Made with: Algodoo before v1.8.5
Rating: rated 7.3
download
Title: House with AHOX Light Bulbs (Algodoo Only)
Rating: 4.7
Filesize: 248.38 kB
Downloads: 1222
Comments: 0
Ratings: 4
Date added: 2009/09/25 01:57:42
Made with: Algodoo before v1.8.5
Rating: rated 4.7
download
Title: AHOX Anglepoise Lamp (Algodoo Only)
Rating: 4.5
Filesize: 251.86 kB
Downloads: 1031
Comments: 0
Ratings: 2
Date added: 2009/09/24 02:27:41
Made with: Algodoo before v1.8.5
Rating: rated 4.5
download
Comment page previous | 1 2 | next
can't wait for little says 3 now with 10 difficultys ranging from timeless to never
Suggestion: Disable the Algodoo clouds because they are distracting and it makes no sense to have clouds with an indoor scene.

Aside from that, the scene looks good and I will play around with it later. I am one of those hobbyists that you mentioned who used BASIC back during the 1980's when I got my first IBM PC computer running DOS-3.11!
I have fixed it. Thank you for the feedback.
Nice! This is a warm welcome for someone who hasn't been on since like several months. How did you fix it though? I'm just curious.
I right clicked on the background and turned off clouds.
Hope this helps! :lol:
what happeened to the AHOX logo? it looks like the Loss meme!
It just changed, that's all.
Came back from inactivity, and this is just revolutionary!
Somebody's gonna make an emulator on this some day. I don't know what it'll emulate, or how it'll even work, but it'll be made.
I've considered making a Chives emulator of some kind, however it would definitely be really slow.

I'm working on optimizing this thing and, don't get your hopes up but I may come out with a model that's significantly faster. If I can get it around the vicinity of 300hz (AHOX Helium could run well up to 720hz) then I'm going to add graphics!

I already have a name for the project as I've had it planned out for a while - AHOX Silver.

I won't bore you too much with the technical details but I am atleast planning on making a Chives computer with a Silver display regardless. Chives is limited, but it's very fast as a result.

If I can speed it up but can't reach the 300hz goal, then I'd probably name the computer something like Hydrogen, and there wouldn't be a graphical mode.

I'm still unsure how to bring about updates to AHOX Basic: do I do what I did with Chives and release a new computer ever so often, or do I do what I did with the AHOX Helium and release hotfixes and new features over time to the same scene?
Last edited at 2023/06/13 21:34:40 by Little
I think release a new computer for new features, and release hotfixes to the same scene.
I'm working on a related project that I don't know whether or not is practical, but basically I'm thinking of creating a character-by-character expression parser to put in the next AHOX Basic computer, if i ever make one.

Doing everything manually would probably be slower than utilizing string.split since Thyme is obviously slower than C++, which is what string.split was (presumably) made in.

However, it could pretty easily get around the issues that the parser has, and with how many operations the current one already uses, it could actually be faster? X to doubt though.

Regardless though, I do highly doubt AHOX Basic will ever be as fast as Chives.
Last edited at 2023/06/18 10:48:03 by Little
Hey Little, do you think the AHOX PCs would run on Algodoo for iPad? I don't have it right now, but appareantly, you can't script on an iPad. However, that's all I found. It doesn't say if you just can't make and edit scripts on an iPad, or if they are unable to run entirely, regardless of the scene.
Probably not because they require a keyboard.
I know that iPad has an on-screen "virtual" keyboard but I don't know how easy or how difficult it would be for coding Thyme Script.
I know that coding Thyme on an iPad would be hard, but would it be hard to *run* Thyme code that was already coded in a scene? Or can PC scenes not run on iPad or something, like I mean... I did see a separate "iPad" group on the Algobox search interface when you access it via a browser.
Here is what I found on the Algodoo user Forum. It's an old post from 2013 and I don't know if there have been any updates since then:


Re: algodoo for ipad

Postby electronicboy ยป Wed Apr 17, 2013 5:05 pm
The iPad version, as far as I know, is a full implementation of the PC version, however I've never tested it.
As far as I know, the only feature loss is Thyme coding on the iPad itself, but Thyme itself does work in some form of implementation, however you will have to code on the PC and transfer to the iPad.

You will have to wait on for someone else to give you information of what is going on.
Last edited at 2023/06/21 17:51:30 by Xray
If I had an iPad, I'd test it out for ya!

..But no, I don't. I have an Android tablet, though. But that can't run Algodoo.



This talk about versions makes me curious - Can Algodoo run on Apple Silicon? I heard there's something called Rosetta 2, and that makes me wonder if that's why Algodoo 2.1.4 hasn't come out for M1/M2 macs.
Xray: Thanks! I think that answers my question. (meaning that thyme code does get executed on the ipad, you just cant make thyme code on the ipad yourself)

Little: I appreciate your help regardless. I was just curious by the way, considering that I have an Android tablet too. Anyways, I think Algodoo should work on Apple Silicon via Rosetta 2. (but if it doesn't, you can always try using the iPad version on macOS)
I go away for a few months and i start seeing realsitic walkers and functioning computers
I guess so....
Did all your pre-AHOX computers literally get annihilated? (with the exception of a few Little PCs) I can't seem to find them anymore. I have a collection of all of them I made some time ago (e.g. LiQuid Systems NanoPC 1), so I'm not requesting them, just wondering what happened to them.
Last edited at 2023/07/02 22:41:47 by swordlink1
Yes, I deleted most of them except for a few "milestone" ones.

The reason was that they weren't real computers (they couldn't run any code) and the quality was pretty poor.

I had also deleted a lot of my old scenes (I wanna say around 70%!) that were really low quality. Even to this day, when I upload I still end up deleting the scene pretty often because I'm not satisfied with how it came out.
Last edited at 2023/07/03 00:40:44 by Little
Come on, they might not have been able to run code but they weren't *bad*.

Some of them were pretty cool, like the Little PocketPC 2.0. (the old ver.) A printing functionaility in a mobile phone form factor was kinda cool, and don't forget the dual-monitor setup on the Little MicroPC 2.0 & 3.0.

Also, the GamerWeb 6.1 & FinalePC had theming support, and not to mention that the MQE Research to the GamerWeb computers also had a chip so small that you had to enable an option in Algodoo's console just to be able to zoom into them.

They might not have been able to run code, but they were still cool and creative, and definitely not bad as well.
I have an iPad now and can confirm the scene is fully functional.
So for the if statement, does , (<) and . (>) have functionality? (it did not work at all for me)

Also there's a weird bug with the while and for loop that causes any return statement (even though the return is inside or outside the loops) to become orphaned. (probably because I used goto to go outside the loops)
, and . do not work in AHOX Basic, < and > are used instead.

The while bug you mentioned isn't a bug.
You are meant to use loops with end, not return.

Hope this helps!
Also, for the install command, it seems that you can't put pointers in. (does not dereference it)

Is it intentional or just a goofy bug?
it looks like I simply forgot to add that.
Thanks for pointing that out!
if i could, i would try and create an adaptor that can make it be able to read X-Disks, or the older ones..


if i had the brains to :bonk:
@Little I noticed something in your code while looking around in the CPU. It seems like there is an expression called "Split()". It seems like it'd work just like string.split(). So, (if it works), why didn't you add it to the AHOX Basic Manual?
Comment page previous | 1 2 | next