8bitworkshop icon indicating copy to clipboard operation
8bitworkshop copied to clipboard

Feature Request: PC Engine

Open tcalospora opened this issue 2 years ago • 8 comments

tcalospora avatar Sep 15 '23 16:09 tcalospora

I have gotten a few requests for PC Engine, I think it's pretty feasible, since it has no BIOS and supported by CC65.

sehugg avatar Oct 12 '23 16:10 sehugg

Trick or treat, PC Engine is started:

https://sehugg.github.io/8bitworkshop/?platform=pce

Needs debugging support (porting the jspce emulator to the Machine interface) Needs more code samples (we have CC65, CA65 and Wiz) Probably could add to Dithertron too, but what format(s)?

sehugg avatar Nov 01 '23 01:11 sehugg

Wow this is really exciting! :D Makes me curious why NES uses DASM instead of CA65 though?

langel avatar Nov 06 '23 20:11 langel

NES supports CA65, see https://8bitworkshop.com/projects/?n=nes/NES-ca65-example

DASM is a little easier for simple examples because it lacks a config file and everything is pretty transparent.

sehugg avatar Nov 06 '23 22:11 sehugg

wow I had no idea... so when creating a ca64 project you start with a .s file?

also does ca65 support the extra opcodes that the PCE has like stz and the transfer block data instructions?

langel avatar Nov 07 '23 15:11 langel

CA65 seems to support it, but I only tried this:

.setcpu "HuC6280"
.global _do_something
_do_something:
    tam #2
    rts

You have to use the extension ".ca65" or ".s" but you can link to an existing C file.

sehugg avatar Nov 19 '23 01:11 sehugg

thanks 👍

langel avatar Nov 19 '23 01:11 langel

DASM doesn't support the extra opcodes, you'll need to implement them as macros or as raw data inserts. Apologies for necroposting.

tcalospora avatar Mar 31 '24 04:03 tcalospora