MSX to Master System port

Page 5/6
1 | 2 | 3 | 4 | | 6

By NYYRIKKI

Enlighted (5396)

NYYRIKKI's picture

09-12-2015, 04:47

segarules wrote:
Quote:

In my very short experience I noticed that different assembler can have different ways to express indirect addressing, immediate variable evaluation and also branch to label.

Exactly my friend. And i only noted when i consulted a assembly tutorial to Sega Master System.

This part should not really be a problem. It is harder to find a good disassembler, so I would try to first select what disassembler I like to use and then select assembler that works good together with the produced code. Little trial and error testing should get you there in no time. Usually problems can be solved also with simple usage of "search & replace" in your favorite text editor.

By Grauw

Ascended (8508)

Grauw's picture

09-12-2015, 09:23

segarules wrote:

I were a fool in to think that port a msx game to SMS would be easy just taking code with disassembler and re-compiling it.

Yeah, it’s not as easy as that... definitely the (disassembled) source code is a great basis to start on, but you’ll need to make many adjustments to deal with the differences in I/O ports, audio chip, memory layout, keyboard/joystick readout, etc.

Assembler syntax differences are a minor hurdle that can be fixed easily by a few simple search-replace actions.

By segarules

Resident (37)

segarules's picture

09-12-2015, 23:25

it's not too simple because the output need to be Master system compatible yet we have the bios.
Anyway i would like send the stuff for someone that wanna develop to sms:
http://www.smspower.org/maxim/HowToProgram/Index

Sure that you have very much knowledge about z80. Therefore is more learn about address, ports and vdp. But i believe in capacity of members here.

By NYYRIKKI

Enlighted (5396)

NYYRIKKI's picture

10-12-2015, 00:54

segarules wrote:

it's not too simple because the output need to be Master system compatible yet we have the bios.

I think that if you want to compile MSX stuff to SMS you can forget the BIOS... There is very little to none you can use anyway and those few routine definitions you may need, you can add manually in few minutes, no matter what assembler you take.

Assembler is just a tool that gives out compiled data. The data is not automatically compatible with anything. It is you who makes the data compatible with some system. Think Z80 assembler as a wrench... Sure, if you go to BMW shop and tell that you want to build a BMW from parts, they will sell you a wrench that has BMW logo in it, but you can also go to Biltema and buy a wrench that has no brand label... Sure Swedish have used that model more for fixing their Volvos, but it is still just a wrench.

By NYYRIKKI

Enlighted (5396)

NYYRIKKI's picture

10-12-2015, 01:07

If you like to use WLA DX, I just noticed from their homepage that "WLA GB-Z80 disassembler included". I don't know if that is any good or not, but I bet it will generate you compatible Z80 code.

By andrea.denara

Resident (60)

andrea.denara's picture

10-12-2015, 11:30

This site is for Msx, so why don't a SMS 2 MSX conversion?
I think about titles like Ghouls n Ghost, Prince of Persia, Rainbow Island that doesn't exist for Msx but exist for SMS.

By giangiacomo.zaffini

Champion (267)

giangiacomo.zaffini's picture

10-12-2015, 13:43

@ andrea.denara : I agree. I will happily help some conversion projects SMS -> MSX2/MSX2+, I'll be too slow by myself.

By Daemos

Paragon (1672)

Daemos's picture

10-12-2015, 15:32

Quote:

Prince of Persia

That one is on my todo list but only if I get serious help. The engine shouldn't be too difficult to code. I think this game is doable in screen5.

By segarules

Resident (37)

segarules's picture

10-12-2015, 21:56

NYYRIKKI wrote:

If you like to use WLA DX, I just noticed from their homepage that "WLA GB-Z80 disassembler included". I don't know if that is any good or not, but I bet it will generate you compatible Z80 code.

I saw it now. I will see what is possible to do. Thanks one more time.

By segarules

Resident (37)

segarules's picture

11-12-2015, 23:52

NYYRIKKI the wla dx readme:

WLAD is a disassembler that can be used to disassemble an existing GB-ROM image
into a WLA-syntax compatible source file. It won't produce very readable
code as all the labels etc. are discarded in the last phase of linking when
the ROM image is made. In the current state WLAD doesn't generate labels,
but it will in the future.

Here's how you use it:

"wlad [-dsa] "

I don't found the binaries (wlad only -others are there)in homepage.

Page 5/6
1 | 2 | 3 | 4 | | 6