Newbie to the 65816. WDCtools C compiler and debugger issue.
Posted: Wed Feb 15, 2023 11:38 am
Hi all.
Some time ago, I built my first SBC. It was based on a 6502, with a very limited set of IO (4x20 LCD screen, and 4 push buttons for input). It was build with a very specific purpose, and it has served me well.
Now, I'm on the very early stages of the design of a full fledge 65816 computer. It's meant to have a standard set of inputs (keyboard, mouse, full VGA or higher screen), and a properly usable OS and tools.
It's a highly ambituous project, and I'm in no hurry to complete it but, to facilite development of the OS and all software, I'm pretty sure I will need something more than pure assembly.
After a few days searching, both in here and in the whole internet, I haven't found anything very useful. It feels like the WDC tools are the only available option, and they seem to be not so well maintained.
Anyway, after some fighting, I've managed to code and compile some small examples, using bits of ASM and C code. I can also run the code in the included emulator.
However, I'm seeing something wrong. I'm not sure if it's my fault, or just an annoying bug in the software.
When I select to run emulating a 6502 (Not a 65816 in emulation mode, but running the emulator as a 6502) I see 16 bit registers! however, If I set the emulated CPU as a 65816... I get 8 bit register in the debug tool.
I've run some code using the registers, and they are correctly emulated, it's just the display now doing its job as it should. It is then, just something annoying... but I could use the tools for my development.
So, my questions to the forum... Is this some known behaviour? Or am I doing something wrong? Is it fixable? Are there any better options?
And, even though I've searched.... I'm sorry if this has come up before.
Cheers!
Some time ago, I built my first SBC. It was based on a 6502, with a very limited set of IO (4x20 LCD screen, and 4 push buttons for input). It was build with a very specific purpose, and it has served me well.
Now, I'm on the very early stages of the design of a full fledge 65816 computer. It's meant to have a standard set of inputs (keyboard, mouse, full VGA or higher screen), and a properly usable OS and tools.
It's a highly ambituous project, and I'm in no hurry to complete it but, to facilite development of the OS and all software, I'm pretty sure I will need something more than pure assembly.
After a few days searching, both in here and in the whole internet, I haven't found anything very useful. It feels like the WDC tools are the only available option, and they seem to be not so well maintained.
Anyway, after some fighting, I've managed to code and compile some small examples, using bits of ASM and C code. I can also run the code in the included emulator.
However, I'm seeing something wrong. I'm not sure if it's my fault, or just an annoying bug in the software.
When I select to run emulating a 6502 (Not a 65816 in emulation mode, but running the emulator as a 6502) I see 16 bit registers! however, If I set the emulated CPU as a 65816... I get 8 bit register in the debug tool.
I've run some code using the registers, and they are correctly emulated, it's just the display now doing its job as it should. It is then, just something annoying... but I could use the tools for my development.
So, my questions to the forum... Is this some known behaviour? Or am I doing something wrong? Is it fixable? Are there any better options?
And, even though I've searched.... I'm sorry if this has come up before.
Cheers!