I'm experimenting with pushing parts of programs to the language card,
using #pragma code-name (push, "LC") with cc65.
This gives good results on my Apple //c. I get ~3k more heap available,
and everything seems fine.
But the same programs crashes hard when emulated on MAME.
I noticed
that the `mame apple2c -listslots` does not list a language card
(contrary to `mame apple2 -listslots`.
Is this wrong, or am I wrong? Is there a way to verify the presence of
that card in my Apple //c?
This gives good results on my Apple //c. I get ~3k more heap
available, and everything seems fine.
:-))
But the same programs crashes hard when emulated on MAME.
:-(
I noticed
that the `mame apple2c -listslots` does not list a language card
(contrary to `mame apple2 -listslots`.
Is this wrong, or am I wrong? Is there a way to verify the presence
of that card in my Apple //c?
The 16kB Language Card upgraded an Apple ][ from 48kB to 64kB. All
later Apple II came with at least 64kB - meaning that they all
contain a "logic" Language Card.
Well. In fact, I also have crashes on the real hardware when pushing to
LC. [...]
But the same programs crashes hard when emulated on MAME.
I've looked a lot at internet resources to figure out if I could
somehow get some higher level of debugging that I could handle, but
didn't find anything :/ Maybe my only choice is to try to build my
program for c64 and check with vice?
Yes, actually, maybe my problem comes from the use of both LC and the "less-well-tested" serial driver:
Both MAME and AppleWin provide debuggers. You can find a couple of
"cheat sheets" here: https://6502disassembly.com/applewin-dbg.html
https://6502disassembly.com/mame-dbg.html
I can't solve your issue but I can say, that I'm using the LC in that
way in most of my cc65 projects. At least some of my projects are
somewhat popular and I never got any feedback that there would be an
issue with that LC usage. So in contrast to e.g. the serial driver
;-) that LC usage is a well tested feature.
If you want to share the code, I'd be happy to investigate.
Does it still have the crashing problem, though? My message might
have been too late if you've solved it already. :-)
Well. In fact, I also have crashes on the real hardware when pushing
to LC. [...]
I can't solve your issue but I can say, that I'm using the LC in that
way in most of my cc65 projects. At least some of my projects are
somewhat popular and I never got any feedback that there would be an
issue with that LC usage. So in contrast to e.g. the serial driver ;-)
that LC usage is a well tested feature.
Holy hell I have figured that out after 48 hours of diving into
assembly!! I'm so proud of myself.
I'll file a bug report to cc65 when I'm rested a bit ! :-)
Very nice!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:34:30 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,774 |