Hello Ruud, * On Thu, Sep 09, 2021 at 09:59:27AM +0000 Baltissen, GJPAA (Ruud) wrote: > > https://github.com/mist64/cbmbasic > > No, I don’t know it and so I just had a look at it. And to be honest, I haven’t > the faintest idea what cbmbasic.c is or what it does. Not that I expect you to > explain it to me but this is really the #1 on my list of unreadable code. It is described here: https://www.pagetable.com/?p=48 In short: It is not meant to be readable. Instead, it is meant to be as compatible as possible: Cite: This application is a recompiled version of the original Commodore 64 binary – it is not a reimplementation, so while it runs at pretty much the maximum possible speed, it is still 100% compatible. The huge C file in the archive has been produced by feeding the original 6502 code into my static recompiler and optimizing it with LLVM. The original operating system interface (character I/O, LOAD, SAVE etc.) has been reimplemented in native C, so Commodore BASIC interfaces nicely with OS X/Windows/Unix – you can use pipe I/O, and you can pass the filename of a BASIC program on the command line. Regards, Spiro. -- Spiro R. Trikaliotis https://spiro.trikaliotis.net/Received on 2021-09-09 13:00:21
Archive generated by hypermail 2.3.0.