GIT with my Genitile and SNASM68kDB

Talk about development tools here

Moderator: BigEvilCorporation

Pascal
Very interested
Posts: 198
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

GIT with my Genitile and SNASM68kDB

Post by Pascal » Fri Mar 31, 2017 12:18 pm

Hello akk,

i've started to sort all my sources code for megadrive in a git. https://github.com/pascalorama/
So far , i've added
- Genitile : sprites and map converter
- SNASM68kDB : snasm , embedded in the dos box emulator trimmed from all graphical component. so it act as a regular command line tool.

and soon to follow , megadrive studio

cheers

pascal

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Fri Mar 31, 2017 1:46 pm

Pascal wrote:SNASM68kDB : snasm , embedded in the dos box emulator trimmed from all graphical component. so it act as a regular command line tool.
You utter hero!

What are the default settings (RAM, speed, etc)? My assembly times in DOSbox are currently 3 mins+ and I can't figure out why. Instantaneous on a real DOS machine (Pentium 75, running whatever DOS comes with Windows 95).
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

cero
Very interested
Posts: 198
Joined: Mon Nov 30, 2015 1:55 pm

Re: GIT with my Genitile and SNASM68kDB

Post by cero » Fri Mar 31, 2017 5:56 pm

If you find the GNU syntax that terrible, surely writing a Motorola-to-GNU converter would be less work than going to the trouble of using an ancient DOS program?

edit: Well, at least one exists already.
https://www.jankratochvil.net/project/mot2as/

Mask of Destiny
Very interested
Posts: 555
Joined: Thu Nov 30, 2006 6:30 am

Re: GIT with my Genitile and SNASM68kDB

Post by Mask of Destiny » Fri Mar 31, 2017 7:00 pm

cero wrote:If you find the GNU syntax that terrible, surely writing a Motorola-to-GNU converter would be less work than going to the trouble of using an ancient DOS program?
There's also vasm which can be built for either Motorola or AT&T syntax (what GNU as uses). It runs on Windows, Unix-like systems, Amiga OS and even Atari TOS. It can output raw binaries, Srecord, ELF and a few more obscure formats.

User avatar
KanedaFr
Administrateur
Posts: 1104
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by KanedaFr » Fri Mar 31, 2017 11:32 pm

Welcome back ;)

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sat Apr 01, 2017 10:43 am

cero wrote:If you find the GNU syntax that terrible, surely writing a Motorola-to-GNU converter would be less work than going to the trouble of using an ancient DOS program?
https://www.jankratochvil.net/project/mot2as/
I can't speak for Pascal but I need the COFF format and debug header that it outputs for use with the SNASM debugger. Plus it works fine, industry proven, etc. Just 'cause it's old doesn't mean it can't compete with the young whippersnappers.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Pascal
Very interested
Posts: 198
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by Pascal » Sat Apr 01, 2017 11:00 am

thanks all ;)

Why keeping snasm68k alive ? i just love snasm68k ;) i'm still using snasm68k because i programmed in 2005 my own debugger (megadrive studio) which use files generated by snasm68k. That debugger is tailored to my needs , and i don't see any use to change my workflow...

Also, I like to use tools like they used to have back in the days, and i'd totaly love to use a genuine debugger like BigEvilCorporation have.

Image
What are the default settings (RAM, speed, etc)? My assembly times in DOSbox are currently 3 mins+ and I can't figure out why. Instantaneous on a real DOS machine (Pentium 75, running whatever DOS comes with Windows 95).
weird , I'm using the default settings for dosbox and rick dangerous build in less than 10 secs using snasm68kdb.

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sat Apr 01, 2017 12:47 pm

Pascal wrote:thanks all ;)

Why keeping snasm68k alive ? i just love snasm68k ;) i'm still using snasm68k because i programmed in 2005 my own debugger (megadrive studio) which use files generated by snasm68k. That debugger is tailored to my needs , and i don't see any use to change my workflow...

Also, I like to use tools like they used to have back in the days, and i'd totaly love to use a genuine debugger like BigEvilCorporation have.

Image
What are the default settings (RAM, speed, etc)? My assembly times in DOSbox are currently 3 mins+ and I can't figure out why. Instantaneous on a real DOS machine (Pentium 75, running whatever DOS comes with Windows 95).
weird , I'm using the default settings for dosbox and rick dangerous build in less than 10 secs using snasm68kdb.
Is this open source? I'm intrigued!
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Pascal
Very interested
Posts: 198
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by Pascal » Sat Apr 01, 2017 2:01 pm

BigEvilCorporation wrote:
Is this open source? I'm intrigued!
Soon, it's based on a old version of genesis plus and wxWidget. It'll be available as soon as i figure out a way to recompile it

here's a binary : http://pascalorama.info/brol/mdstudio.zip

you mind need to install vcredist 2010

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sat Apr 01, 2017 3:00 pm

Pascal wrote:
BigEvilCorporation wrote:
Is this open source? I'm intrigued!
Soon, it's based on a old version of genesis plus and wxWidget. It'll be available as soon as i figure out a way to recompile it

here's a binary : http://pascalorama.info/brol/mdstudio.zip

you mind need to install vcredist 2010
Thank you kindly :) I was hoping to do this kind of thing for Exodus, got a COFF file reader plugin done, but if this works out I won't bother.

I'm a wxWidgets victim myself, my condolences!
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sat Apr 01, 2017 3:04 pm

Ok first off, how on Earth has it managed to pull symbol names from a standard BIN?
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Pascal
Very interested
Posts: 198
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by Pascal » Sat Apr 01, 2017 6:28 pm

BigEvilCorporation wrote:Ok first off, how on Earth has it managed to pull symbol names from a standard BIN?
surely because you have a .map file in the same folder as your rom (and with the same name). I don't use COFF ;)

and the most useful feature for me , is that you can have a breakpoint using GensKMod breakpoint method :

*******************************************************************************
* MACRO BRK
* DESCRIPTION: Force un breakpoint dans MDStudio/kmod
* PARAMETERS: none
*******************************************************************************
BRK macro
if DEBUG
VDP_SetRegister $1d,$0
endc
endm

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sat Apr 01, 2017 8:27 pm

Pascal wrote: surely because you have a .map file in the same folder as your rom (and with the same name). I don't use COFF ;)
Ahah! Yes, I do indeed!
Pascal wrote: and the most useful feature for me , is that you can have a breakpoint using GensKMod breakpoint method :

*******************************************************************************
* MACRO BRK
* DESCRIPTION: Force un breakpoint dans MDStudio/kmod
* PARAMETERS: none
*******************************************************************************
BRK macro
if DEBUG
VDP_SetRegister $1d,$0
endc
endm
Ok, I'm writing off my Exodus plugin, this thing will do the job just fine :p

Can't get it to run my ROM though, it just blats the code window with illegal instructions. Do I need to do anything special?
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Pascal
Very interested
Posts: 198
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by Pascal » Sat Apr 01, 2017 9:00 pm

BigEvilCorporation wrote:
Pascal wrote: Can't get it to run my ROM though, it just blats the code window with illegal instructions. Do I need to do anything special?
uber weird ! is the starting position in your header is different than $200 ? is the rom padded ?

User avatar
BigEvilCorporation
Very interested
Posts: 192
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: GIT with my Genitile and SNASM68kDB

Post by BigEvilCorporation » Sun Apr 02, 2017 10:13 am

Pascal wrote:
BigEvilCorporation wrote:
Pascal wrote: Can't get it to run my ROM though, it just blats the code window with illegal instructions. Do I need to do anything special?
uber weird ! is the starting position in your header is different than $200 ? is the rom padded ?
Yes and no :)

The entry point is arbitrary, depending on how it's assembled, marked in the vector table (entry #2?). I'll try moving it explicitly to $200 and pad the rom.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Post Reply

Who is online

Users browsing this forum: nemka and 2 guests