It is currently Sun Jul 22, 2018 4:02 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Feb 12, 2018 7:19 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20282
Location: NE Indiana, USA (NTSC)
I was thinking of experimenting with the ColecoVision, Master System, or Game Gear so that I can write a music player targeting the TI SN76489 (and Yamaha's clone thereof) without having to go to something as obscure as the CreatiVision (which pairs the same VDP and PSG as the ColecoVision and SG-1000 with a 6502 but was never released in North America). I use Debian 9 and can compile programs from source code.

What's a decent, maintained assembler targeting Z80 that supports a similar use model to ca65? By this I mean assembly then linking with a linker configuration for each platform, as opposed to just .include all the other source files the way one would do with NESASM. I'm told WLA DX can do Z80, but I'm also told WLA is full of bugs. Is this still true? I looked into SDAS/SDLD included with SDCC, but asmlnk.txt didn't appear to have any instructions on how to write a linker configuration file.


Top
 Profile  
 
PostPosted: Tue Feb 13, 2018 9:07 am 
Offline

Joined: Sun Mar 27, 2011 10:49 am
Posts: 254
Location: Seattle
I don't do any true Z80 stuff right so I don't have any first hand experience; all I can contribute are two facts: WLA started as a (GB)Z80 assembler so you're probably least likely to hit bugs when using it against that ISA, and SMS Power! recommends WLA.

Were I to want to cross-assemble some Z80 programs, WLA is probably where I'd start.


Top
 Profile  
 
PostPosted: Tue Feb 13, 2018 10:12 pm 
Offline

Joined: Tue May 28, 2013 5:49 am
Posts: 983
Location: Sweden
Do WLA DX have a linker though? I've only used it for SNES development long ago and I didn't like it.

The closest thing to ca65 I know is RGBDS, it at least has a linker and a powerful macro language. It's designed for Game Boy and I'm not sure if it's only GBZ80 though or if it can do stock Z80 as well.


Top
 Profile  
 
PostPosted: Tue Feb 13, 2018 10:46 pm 
Offline

Joined: Sun Mar 27, 2011 10:49 am
Posts: 254
Location: Seattle
I don’t believe it can. (edit: to be clear, I mean: I don't believe RGBDS supports the full Z80)


Last edited by adam_smasher on Wed Feb 14, 2018 7:52 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Feb 14, 2018 1:54 am 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 3435
Location: Mountain View, CA
wlalink is WLA DX's linker. It comes with the program/suite.

Folks unsure about WLA DX's features/etc. should please read the documentation: https://github.com/vhelin/wla-dx/tree/master/doc


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group