I often use my blog as a reference of my previous work. Searching it today for VDA/VPA, I realized that I never wrote here about my findings regarding these 65816 pins. But I seem to recall having done so recently. Searching my social media more broadly I found that I had written a bit about …
65816: Running C-based Code Outside Bank 0 on the 65816
In my last post I showed that you could run cc65 compiled C-based code on the 65816. The main limitation was that the C-based segments had to be located in Bank 0 (and of course that the standard C-library functions were running with 8-bit registers and none of the 65816 added instructions or address modes). …
Continue reading “65816: Running C-based Code Outside Bank 0 on the 65816”
65816: Running C-based Code on the 65816
I’ve been wondering for a while if I could run C-based code on the 65816 using the cc65 toolset. Browsing through the cc65 documentation and C libraries it’s pretty clear that the 65816 isn’t specifically supported. In fact, the C libraries are primarily targeted towards the 6502 with just modest support for the 65C02. The …
C Coding: Tripped Up by a Carraige Return
Try out the completed N-Queens project discussed in this post You may have noticed from my last few posts that I’ve been adding support for the C programming language to my db65xx debugging extension for VS Code. When I first started with cc65, the added complexities needed to program in C kept me firmly in …
Continue reading “C Coding: Tripped Up by a Carraige Return”
6502: View C Function Local Variables in db65xx
I’ve added the capability to view local variables in C functions to the db65xx VS Code extension. I plan to write a bit more about this, but for now, here are a few screenshots. You can try it out with my Sieve of Eratosthenes project.
6502: Debugging the Sieve of Eratosthenes with the VS Code db65xx Debugging Extension
12/17/2022 Update: db65xx now handles normal debug stepping within C files. I successfully ran my C-based Hello World example project in my VS Code db65xx Debugging Extension but needed a more rigorous test of C-based debugging. I often go to Rosetta Code to look for code samples to test on my various builds and find …
6502: Debugging C-based Code with the VS Code db65xx Debugging Extension
I’ve added some support for C-based debugging in the VS Code db65xx Debugging Extension. Try it and other example projects out in my db65xx projects repository.
6502: Playing Chess on the VS Code db65xx Debugging Extension
I like trying out new programs on things I build and doing so on my VS Code db65xx debugging extension is no exception. I found a fun little chess program by Oscar Toledo that was easy to port to cc65 and needed only a few I/O modifications to get running on db65xx. It doesn’t play …
Continue reading “6502: Playing Chess on the VS Code db65xx Debugging Extension”
65C02: Running Functional Tests in the VS Code db65xx Debugging Extension
I’ve created a project to run Klaus Dormann’s functional tests in my VS Code db65xx debugging extension. Three test builds are available, one for the 6502, one for the 65C02 extended functions, and one testing the decimal mode. Here are some screenshots. Note that the 6502 and decimal mode tests can also be run on …
Continue reading “65C02: Running Functional Tests in the VS Code db65xx Debugging Extension”
65816/65C02: Example Projects for VS Code db65xx Debugging Extension
I’ve created a GitHub repository with example projects for testing my VS Code db65xx debugging extension. If you already have cc65 installed, you can try out these examples with a few keystrokes. Here are a few screenshots: Basic terminal I/O Example of integrated terminal I/O. Prints “Hello world!” to the terminal and accepts keyboard input …
Continue reading “65816/65C02: Example Projects for VS Code db65xx Debugging Extension”
6502: db65xx VS Code Debugging Extension Now Supports 65C02 and 6502 Microprocessors
I’ve added support for the 6502 and 65C02 microprocessors to my db65xx VS Code debugging extension. Here is an image of me debugging my 65C02-based Forth operating system.
65816: Testing the 32-bit Floating Point Package with the VS Code db65xx Debugging Extension
A reader recently asked me about some troubles he was having getting my 32-bit floating point package up and running. I thought it would be a great test for my new VS Code 65816 debugging extension. With just a few edits to the test program the reader was using, I was up and running in …
65816: VS Code Debugging Extension Available
In my last post I discussed developing a debugging extension for VS Code for the 65816. It was pretty easy to get something up and going in a couple of days, but polishing it took a bit longer. It’s now available in the Visual Studio Marketplace and for modification at my GitHub, along with an …
Continue reading “65816: VS Code Debugging Extension Available”
65816: Debugging Code
I haven’t written much about debugging yet, but tools to help debug my code have been essential to my system development. I started out with the simple Ben Eater 6502 build where debugging consisted of repeating a cycle of write code, assemble and burn it to an EEPROM, and test the system for proper operation, …
65816: Coding – To Optimize or Not
As I was working on my 32-bit floating-point package (GitHub) I noticed some opportunities to optimize the code. For example, scale10, used while converting strings into floating-point values, uses the package’s 32-bit routines to multiply and divide by 10. For example, to scale up by 10 we load 10 to the floating-point stack and call …