Using FreeDOS - Bywater BASIC

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии • 24

  • @nuk1964
    @nuk1964 4 года назад +8

    If you're a mathematically-oriented person, you might like UBASIC ( Wikpedia entry: en.wikipedia.org/wiki/UBASIC ) -- one of the more advanced BASICS for math use as it had built-in support for rationals and complex numbers, as well as working with polynomials. The extended precision was hard to beat -- one of the demo programs computes Pi to 2500 digits!
    Speaking of use for math... one useful feature in the GW-BASIC is the WINDOW statement for graphics (I don't recall if the ROM BASIC had this or if it needed BASICA extensions) -- which allows you to configure the coordinate system used in plotting graphics. Not only does it perform the coordinate scaling, but it also automatically handled the "flip" you'd need to make in the Y coordinate (the origin for the physical coordinate are "upside-down" with the origin on the upper left corner and Y values increasing as you go down -- in normal Cartesian coordinates the Y coordinate values increase as you go up) -- it made writing programs to graph math functions *really* easy.

    • @freedosproject
      @freedosproject  4 года назад +5

      I have some memory of GW-BASIC programming, but not a lot. I remember doing some graphics stuff, mainly reproducing some simple games I wrote on AppleSoft BASIC on the Apple II.

  • @yschoi5838
    @yschoi5838 Год назад +1

    학원에서 gwbasic을 열심히 배웠던게 생각나네요
    10 for i=1 to 9
    20 print "hello"
    30 next i
    run
    추억돋아요

  • @tterbo128
    @tterbo128 4 года назад +3

    Those are fun looking Basic games.

    • @nuk1964
      @nuk1964 4 года назад +4

      Speaking of BASIC games... David H Ahl's "BASIC Computer Games" and "More BASIC Computer Games" books were (and still are) great fun.

    • @wisteela
      @wisteela 4 года назад +2

      @@nuk1964 And the code is all available online.

  • @ropersonline
    @ropersonline 2 года назад +2

    8:39: So what's on the other 990 acres you're not planting? Golf courses?

    • @freedosproject
      @freedosproject  2 года назад +4

      I never thought of it that way! ☺ I guess it's just unused space.

    • @ropersonline
      @ropersonline 2 года назад +2

      @@freedosproject My thought was, maybe you're planting too closely together? Try planting the same amount of seeds over a greater acreage and see if it makes a difference.

    • @freedosproject
      @freedosproject  2 года назад +3

      @@ropersonline Been a while since I wrote that game or looked at the code, but it's a math-based resource-balance game. A person can only plant X many acres, so trying to plant more acres requires more people.

  • @wisteela
    @wisteela 4 года назад +1

    Great stuff. It's certainly a newer version than under Linux. That one hasn't been updated since 1997!

    • @kenunix1863
      @kenunix1863 3 года назад +2

      There is a new one in the works.

  • @wisteela
    @wisteela 2 месяца назад

    I use this in Linux, and it comes with a load of example programs.

  • @jamesrakestraw7125
    @jamesrakestraw7125 Год назад

    Do you have a good website. I can download for free to make my database. Can you help me please..

  • @SouravDatta
    @SouravDatta 3 года назад +1

    I recently got started with FreeDOS and tried installing bwbasic after running fdimples. When trying to run the program bwbasic it gave the error "This program must be run under Win32". How do I solve this?

    • @freedosproject
      @freedosproject  3 года назад +2

      I think you're running FreeDOS 1.2. We included the wrong EXE for Bywater BASIC in FreeDOS 1.2, and that's where you get the error. Download the updated package from our FreeDOS Files Archive at Ibiblio, or update to FreeDOS 1.3 RC4.

    • @SouravDatta
      @SouravDatta 3 года назад

      @@freedosproject Yes I was using 1.2. Thanks for pointing that out, will try the RC4 next. Btw, its amazing to code C programs in a DOS environment!

  • @peterkihlstedt132
    @peterkihlstedt132 4 года назад +1

    Can it run GW basic or Qbasic programs unmodified or with just slight modification?

    • @TheRealRedRooster
      @TheRealRedRooster 4 года назад +5

      It needs to be ASCII format, so no tokensized GWBASIC programs. And it doesn't support a lot of the PC specific stuff of GWBASIC. Nor any of the more advanced constructs of QBASIC.
      And it isn't able to read or write those GWBASIC MBF floats from/to files...

    • @grappydingus
      @grappydingus 4 года назад +3

      Adding to @Ralf If you wish to save a GW-BASIC program as ASCII, simply open it in GWBASIC and the do a SAVE"FILE.BAS",A --where FILE.BAS is the name of your BASIC program.

    • @nuk1964
      @nuk1964 4 года назад +3

      @@grappydingus This doesn't work if the program in question was saved as "protected" -- which prevents you from LISTing the program as well as saving it in ASCII format. Fortunately there was a surprisingly simple "hack" that didn't require external programs, nor any weird PEEKs and POKEs. You just needed to create a (binary) file, and write out some bytes, then close it. This file can be LOADed, which will un-protect any protected BASIC program in memory (apparently this binary file was simply the truncated header for a tokenized BAS file. There was another sequence of bytes that would protect the program in memory).
      Just did a quick Google search -- found the info:
      groups.google.com/g/comp.os.msdos.misc/c/PA9sve0eKAk?pli=1

    • @wisteela
      @wisteela 4 года назад +2

      @@nuk1964 I've been wondering how to unprotect for years. I'm checking that out. Thanks!

  • @tionerd8534
    @tionerd8534 3 года назад

    Can i run Applesoft Basic in bwbasic?

    • @freedosproject
      @freedosproject  3 года назад +1

      Bywater Basic is very similar to AppleSoft Basic from the Apple II. So unless you're doing something specific to the Apple, your Basic code should work.