Page 1 of 1

BitMagic - The X16 Development Suite!

Posted: Sun Mar 12, 2023 6:51 pm
by Yazwho
Bit Magic

BitMagic is a project the aim of which is to create a single Commander X16 Development Suite using VSCode.

It is comprised of four parts:

- Template Engine
- Compiler
- Debugger
- Emulator

Generally you'll want to start with either the Debugger or the Emulators, so please follow those links for more information!

Please note, this is not an 'official' application that is endorsed by the Commander X16 team.

It is also a work in progress, for development you may find the Official Emulator or Box16 a better choice.

Debugging the kernel using VSCode:
DebuggerExample.png
DebuggerExample.png (330.1 KiB) Viewed 8576 times

Re: BitMagic - The X16 Development Suite!

Posted: Mon Mar 13, 2023 11:00 am
by Johan Kårlin
Wow, very interesting project. I will eagerly follow the development of this. :D

Re: BitMagic - The X16 Development Suite!

Posted: Sat Apr 01, 2023 9:55 am
by Yazwho
The debugger is now available on the VSCode extensions marketplace.

Just search for `bitmagic` and click install!

Please note, only Windows is supported.

For more information please check the extension's page, which has links to the documentation.

Both the debugger, emulator and extension are still a work in progress, so the same caveats still apply in that the official emu or Box16 might be better choices!

extension.png
extension.png (376.59 KiB) Viewed 8477 times

Re: BitMagic - The X16 Development Suite!

Posted: Sat Apr 01, 2023 7:51 pm
by danboid
Seeing as VS Code has (ar least) Linux and macOS ports can you please explain why this is Windows only? Do you plan to support other platforms, or at least Linux VS Code?

Re: BitMagic - The X16 Development Suite!

Posted: Sun Apr 02, 2023 9:36 am
by Yazwho
The debugger\emulator core is written in x64 assembler, so it will only run on that architecture.

This core is then wrapped in a C# application, which handles everything else. While this may well run on x64 machine running Linux, I do not have such a machine so I cannot test it. I would never release something untested, so that precludes a Linux version.

All the code is available, so if you want to compile it on a Linux box and give it a go, I'd be interested to hear if you can get it to work.

Re: BitMagic - The X16 Development Suite!

Posted: Mon Apr 10, 2023 9:16 pm
by Yazwho
The standalone emulator now has an installer, and is available from:
https://github.com/Yazwh0/BitMagic/rele ... ESetup.msi

Sadly no auto-updater yet. Was going to use the Windows Store or similar, but I dont want to pay for a certificate to sign the installer so will have to figure something else out.

Re: BitMagic - The X16 Development Suite!

Posted: Sat Apr 15, 2023 4:32 pm
by Yazwho
Expressions have been updated both in the debugger and the compiler, so you can now use the `<`, `>` and `^` both as unary operators and their normal equivalent.

for example both of these are now valid:

> 0x1234 1 > 2 ? > 0xabcd : > 0x1234

Both returning 0x34 as you'd expect. You can also use $ to denote a hex value, instead of 0x.

(The old way of pasting in html code was much nicer for examples...)

Re: BitMagic - The X16 Development Suite!

Posted: Sat Apr 29, 2023 12:08 pm
by Yazwho
Added some documentation for Watches and Breakpoints.

Log Point example
Logpoint.gif
Logpoint.gif (873.7 KiB) Viewed 8007 times

Re: BitMagic - The X16 Development Suite!

Posted: Sat Apr 29, 2023 7:31 pm
by Yazwho
danboid wrote: Sat Apr 01, 2023 7:51 pm Seeing as VS Code has (ar least) Linux and macOS ports can you please explain why this is Windows only? Do you plan to support other platforms, or at least Linux VS Code?
Now works with Linux!

Just install the extension from VSCode and away you go.

linux.gif
linux.gif (1.31 MiB) Viewed 7987 times