Results 1 to 40 of 69

Thread: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

Threaded View

  1. #11

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,945

    Re: Feeling nostalgic I fired up QuickBASIC and wrote a Brain***** interpreter!

    Okay, INCR/DECR statements have been implemented where applicable and a byte array makes the code a heck of a lot more efficient! :-) The program appears to be running slightly faster now.

    And:
    If anyone knows anything about dynamic arrays (REDIM PRESERVE) in PowerBASIC 3.5 for MS-DOS, please reply. PowerBASIC gave me a hard time trying to implement these as an alternative for the string I am using to keep track loop addresses. Yes, I used a string because I saw no other reasonable method of simulating a list in QuickBASIC. Anyway I tried fiddling the array's scope such as making it global instead of local to procedures and passing it around as a parameter. How exactly did PowerBASIC give me hard time? Mostly by simply freezing or throwing some error about string handles concerning a string variable that happens to be in the same procedure as the dynamic error. My guess is the stack is somehow getting trashed. I deleted the code concerning the dynamic array, but I could easily rewrite it if anyone would like to see it. Still, if anyone knows about dynamic arrays in PowerBASIC, your help would be much appreciated! :-)
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width