[PLUG] C64 emulator ... was (ancient) .BAS file with linux

Robert Citek robert.citek at gmail.com
Wed Jul 14 00:02:17 UTC 2021


I was hoping to just print “Hello, world!” to stdout. - Robert

On Tue, Jul 13, 2021 at 1:20 PM, Ben Koenig <techkoenig at protonmail.com>
wrote:

> It wants to open a new window because thats what freeglut is for. Are you
> printing "Hello, World" to stdout or an opengl texture?
>
> Sent from ProtonMail mobile
>
> -------- Original Message --------
> On Jul 13, 2021, 11:44 AM, Robert Citek wrote:
>
> > Just for fun, I tried to get the gb64 compiler to run. But it's not
> > outputting "Hello, world!"
> > Here's what I am doing on Ubuntu 20.04:
> >
> > apt-get update
> > apt-get install -y wget less tree g++ libgl-dev libglu1-mesa
> > libglu1-mesa-dev vim
> > cd /tmp/
> > wget
> >
> https://github.com/QB64Team/qb64/releases/download/v1.5/qb64_1.5_lnx.tar.gz
> > tar -xzvf qb64_1.5_lnx.tar.gz
> > cd qb64/
> > cat <<'eof' > hw.bas
> > 10 PRINT "Hello, world!"
> > eof
> > ./qb64 -x hw.bas
> > ./hw
> >
> > The output I get looks like this:
> >
> > QB64 Compiler V1.5
> >
> > Beginning C++ output from QB64 code...
> > [..................................................] 100%
> >
> > Compiling C++ code into executable...
> > Output: hw
> > freeglut (./hw):
> >
> > It seems intent on opening a new window. Oh, well. Just thought I'd post
> > my results.
> >
> > Regards,
> > - Robert
> >
> > On Tue, Jul 13, 2021 at 10:40 AM Keith Lofstrom <keithl at kl-ic.com>
> wrote:
> >
> >> On Mon, Jul 12, 2021 at 08:01:19PM -0700, Nat Taylor wrote:
> >> > https://www.qb64.org/portal/
> >>
> >> On Mon, Jul 12, 2021 at 7:51 PM Nat Taylor <bioborg at gmail.com> wrote:
> >>
> >> > ... Or a C64 emulator (here
> >> > is an online one: https://c64online.com/c64-online-emulator/ )
> >>
> >> Those may be very useful - I have a bunch of old Commodore
> >> PET cassettes and an old dual cassette-to-GPIB peripheral.
> >> Also a modded Commodore PET serial number 8, which isn't
> >> working right now, but I could fix if I had the time.
> >>
> >> I also have a stack of Commodore PET engineering blueprints
> >> (real blue-on-white D size Diazo copies with red confidential
> >> notices stamped on them) for that ancient personal computer.
> >>
> >> Long story omitted.
> >>
> >> Microsoft BASIC, used on the 6502-based Commodore PET and
> >> C64, used the same BASIC bytecodes as other computers using
> >> Microsoft BASIC (like BASIC for CPM 8080). A few machine-
> >> dependent differences for peripheral IO. The binaries
> >> for the different CPUs were different, of course.
> >>
> >> Apple BASIC is a different lineage, written by Steve
> >> Wosniak, and used a different set of binary bytecodes.
> >>
> >> The Tandy TRS-80 was yet another lineage.
> >>
> >> Back in the mists of time, one of my side-business projects
> >> was "Little Big Disk", an 8 inch Shugart floppy drive (CPM
> >> compatible) with a Commodore-PET compatible GPIB connector.
> >> It performed the slight translation needed to interchange
> >> M$ 8080 CPM BASIC with M$ 6502 Commodore PET BASIC.
> >>
> >> How did I learn how to do this? That is another long
> >> story, which I hesitate to write because Bill Gates
> >> may still be as insanely pissed off as he was in 1977.
> >>
> >> Keith
> >>
> >> P.S. It is amusing that in the late 70s, "64" was Kbytes
> >> of RAM (16 bit address space), rather than a binary word
> >> length. Now with 64 bit words, a 64 bit address space is
> >> theoretically possible, but there aren't any 20 exaword
> >> machine memories yet.
> >>
> >> --
> >> Keith Lofstrom keithl at keithl.com
> >>



More information about the PLUG mailing list