Howdy...
I'm not sure you need the WDC compiler, it recently drove me nuts for two days so I think it's time to look into something else...
I had a piece of code like this,
Code:
SID_BASE EQU $7F20 ; base address of SID port on SXB
SID_FR1LO EQU SID_BASE
SID_FR1HI EQU SID_BASE + $01
SID_PW1LO EQU SID_BASE + $02
SID_PW1HI EQU SID_BASE + $03
SID_CR1 EQU SID_BASE + $04
SID_AD1 EQU SID_BASE + $05
SID_SR1 EQU SID_BASE + $06
.
Do some stuff with an emulated SID @ $7F20...
Which didn't work and I could not figure it out until I started to look into what address is actually used.
Turns out that the offset is not added since I put a space in between SID_BASE and the offset.
So I changed the code to,
Code:
SID_BASE EQU $7F20 ; base address of SID port on SXB
SID_FR1LO EQU SID_BASE
SID_FR1HI EQU SID_BASE+$01
SID_PW1LO EQU SID_BASE+$02
SID_PW1HI EQU SID_BASE+$03
SID_CR1 EQU SID_BASE+$04
SID_AD1 EQU SID_BASE+$05
SID_SR1 EQU SID_BASE+$06
.
Do some stuff with an emulated SID @ $7F20...
This piece of code works fine and the offset is added as expected...
Right now I'm trying to get used to the WDC compiler and the Atom editor...
The recommended editor is Ultra Edit which is only free for 30 days and then cost $80.
However switching out the editor in the IDE means that the editor does not launch properly, the editor launches but it does not open the file...
I don't think the problem would be to switch out the compiler, it's probably more of a question on how to get the debugger working in your own IDE by launching your code and allowing debugging...
Maybe ditch the WDC IDE and call their compiler and debugger separate works better, I think that is what BitWise is doing...
Let me read up on Fasm and see if it can be used...