Search results

  1. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    RL has been far too busy lately, not getting much fun stuff done. But today, took an hour and did some leatherworking .. learnt a new useless skill! I picked up archery as a hobby a year or two back, so wanted to make a new vambrace (wristguard that goes all the way around the arm) .. didn't...
  2. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    ahright, got my 3d printer back in working order. Time to get back to case designs :) jeff
  3. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Consult the README :) Checked in a fix for the .. typo; that was meant to be a // commenting out of the line, and I was/am falling asleep at the keyboard :O Sorry about that. ./sbrun 0 ./testcode/foo.sb -> will run with almost no debug-junk on the screen ./sbrun 1 ./foo.sb --> will show some...
  4. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    I switched to SUBROUTINE subname ENDSUB with "GOSUB subname" to be the initiator. FWIW, I posted a GitHub. Try not to laugh _too_ much :) It was a rush job! :) https://github.com/skeezix/skeebasic
  5. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    IF statements are multiline, yeah; I don't have ELSE handled yet, but shouldn't be hard to add it. WHILE, IF, PROCEDURE are all multiline things. (Really, there is an element type 'sequence', which is just a linked list of other elements; so whenever I want something to contain more code, it...
  6. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Forth is pretty interesting really, but not what I wanted to go for here (not the kind of 'lulz' I wanted :) for the GLOBAL keyword thing, it wouldn't "nest"; ie: By doing a GLOBAL in one procedure, it woudln't imply that if another subroutine is called that if it tried to use a var, that that...
  7. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    I meant to look into putting the Scoping rules into the "AST" (the element tree); as is, when you do a GOSUB, that handler does an enter- and exit-scope around the 'run element' business. Should be fine, but at the same time, the 'parsing/compiling to AST' phase could just insert an element for...
  8. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    I suppose a question comes up.. Would anyone care? - is this only of interest to some subset of Zikzak interested people (a niche of a niche of a niche) (Openhandhelds - zikzak - those interested in basic - those interested in alpha level script languages ... 3 people? :) - or possibly is this...
  9. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    OKay, hacked for an hour, got GOSUB and PROCEDURE working (though scoping is a little bunged up so far, for the variables therein). So IF, WHILE, GOSUB, etc, good to go so far. Its still limited of course.. just doing language constructs is fine and dandy, but it can't actually _Accomplish_...
  10. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Not much time lately, but skeebasic does support WHILE and IF and MODULO now: let x = 0 while x < 11 print x if x % 2 print "Odd in while" endif let x = x + 1 endwhile print "done!" When run, that spits out: 0 1 Odd in while 2 3 Odd in while 4 5 Odd in while 6 7 Odd in while 8 9...
  11. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    yeah, in my lame implementation so far, theres just a 'scope stack'; scope [ 0 ] is globals and always exists; but if you go into a GOSUB (say), it'll increment the scope-stack counter (0->1). Whenever a variable is looked up, it first checks the highest scope stacks symbol table, and if not...
  12. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Depends on 'how old' a BASIC you look at. Some of them only did "GOSUB <reference>" standalone, and the subroutine could do "RETURN" to jump back; the advantage was just the automatic jum pback, from wherever the jump was. IT was better than GOTO in those cases, simce GOTO didnt' knwo where to...
  13. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Well, on the one hand you can do a serious parser like an LALR parser /etc; or you can run lex/yacc/bison (etc) to spit out the code for one based on your BNF grammar. But given this is just a few hours project, I went easy :) The language is all '1 line constructs', and of the form KEYWORD...
  14. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Yeah, theres lots that could be done, but my amount of spare time and interest level is not on working on a tight little BASIC; it has no future after all, and there are other BASICs out there (including the original Tiny Basic, which is pretty shit hot for 70s code :) .. ie: Right now its just...
  15. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    I forget offhand actually .. maybe 10MHz? Some of those models go up to 30MHz but I don't think I bothered with that one. This BASIC will be very slow I'm sure, as its not compiled per se; just compiled to IML and then simulated from there, with a lot of waste, and written reasonably 'clean'...
  16. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    I do love python (I even stealthed in a buttload of jython as I'm definitely not a fan of java, at work ;) .. it really depends how configurable the build is for cpython; perl for instance is crazy flexible in the ./configure script.. I've never looked that detail into cpython's build though...
  17. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    This is some lame code, but its working out okay so far; I'm sure its riddled with bugs and poor assumptions, but for around 3 hours work, its actually working pretty darned well. Had a lull here so added in some basic operator handlers (numeric +, -, /, *, ==, =, !=), and a WHILE loop handler...
  18. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    No time for sitting at desk today (and may be a few days, sadly) .. but when I can't reach the desk, and am stuck in a dark room getting little kids to sleep, I hack away on the old laptop (theres where half my schematic work gets done etc :P) I've put a pause on the full 'SkeeBASIC'...
  19. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    Problem with logic analysers is they only do logic high/low (based on some reference determination); they dont' show analog .. ie: if your logic high isn't high enough, or if its sinusoidal instead of square wave, etc. I find LA is good for analysizing logic on a 'known good' connection .. like...
  20. skeezix

    Zikzak - crummiest 8bit console/computer ever .. but I'm making it!

    What sort of Galaga issues? I'm no Galaga expert, but there _Are_ those people around as it is one of The Games. Like Ms Pacman .. you can rhyme off the usual 20 issues it has and peopel will tell you exactly what to fix. Just have to find the right forum :) I've seen a fair number of character...
Back
Top