Post by Camtronic16 on Sept 8, 2014 13:19:02 GMT -5
. E.G. an illegal instruction jumps to
with the error code of 01.
Last Edit: Sept 8, 2014 13:37:02 GMT -5 by Camtronic16: Added in another suggestion
The Genesis is primitive in comparison to modern day computers (and even computers that were new when these consoles were new), so adding in stuff like a string subsystem and an error catching subsystem would eat up more resources than the use they'd get. If you know how many substrings you'd need, it would be very easy to write a function that will explode a string into individual words/phrases, like so:
global strArray$(5) as string
declare sub Explode(str$ as string) local x as integer, word as integer, buffer as integer word = 0 for x = 0 to len(str$)-1 if mid$(str$,x,1) = "|" then strArray$(word) = mid$(str$,buffer,x-buffer) buffer = x+1 'strArray$(word) = left$(str$,x+buffer) word++ end if next strArray$(word) = mid$(str$,buffer,x-buffer+1) end sub
Unsure why you'd want to do something like this since it would be faster (execution-wise) to just do PRINT "Menu Item 1": PRINT "Menu Item 2" instead of sending a string to be parsed to do the same thing.
Last Edit: Sept 8, 2014 20:53:26 GMT -5 by elusive
Also would like to see fading in and out of CD music volume. I know the commands exist within the bios, but would be nice to have them included as a simple call to fade in or out the audio track currently playing. Maybe even a command to start playing audio from a specific time as well
Post by nitrofurano1 on Aug 22, 2016 16:09:52 GMT -5
i think an excellent suggestion would be having BasiEgaXorz released as software-libre host somewhere like github - it might sound ironic (as afaik i never saw BasiEgaXorz sources released yet, or any kind of a libre alternative of it), but would be great being able to improve this cross-compiler, as well extending it to other 68k-based machines like Sinclair-QL, Amiga, NeoGeo, arcade machines (like Darius or Gradius), etc.
as well, since i’m only using BasiEgaXorz on GNU/Linux via Wine, and i’m far more comfortable on developing using a text editor and terminal instead of using an ide, i’m missing a lot the possibility of compiling code only from command line arguments instead of opening an ide for that, a bit like using Boriel’s ZX-Basic Compiler (which i have being using it for creating stuff for Master System, Game Gear and SG-1000)