Jump to content

Photo

Mac OS X Leopard Cross-Assembler/Disassembler?


38 replies to this topic

#26 spookt OFFLINE  

spookt

    Stargunner

  • 1,790 posts
  • This is SPARTA(DOS)
  • Location:Sunderland, UK

Posted Thu Dec 31, 2009 11:22 AM

Aha - well I have a PPC Powerbook so I can give it a whirl later.

#27 spookt OFFLINE  

spookt

    Stargunner

  • 1,790 posts
  • This is SPARTA(DOS)
  • Location:Sunderland, UK

Posted Thu Dec 31, 2009 11:55 AM

So it is later already ;)

Here is Mads 1.9 built for PPC (one day I'll figure out Universal binaries!):

Macintosh:Documents paul$ uname -a
Darwin Macintosh.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

Macintosh:Documents paul$ ./mads -v
mads 1.9.0
Syntax: mads source [switches]
-b:address	Generate binary file at specific address
-c		Label case sensitivity
-d:label=value	Define a label
-f		CPU command at first column
-hc[:filename]	Header file for CC65
-hm[:filename]	Header file for MADS
-i:path		Additional include directories
-l[:filename]	Generate listing
-m:filename	File with macro definition
-o:filename	Set object file name
-p		Print fully qualified file names in listing and error messages
-s		Silent mode
-t[:filename]	List label table
-x		Exclude unreferenced procedures
-vu		Verify code inside unreferenced procedures
-u		Warn of unused labels


Attached File  mads.zip   153.46KB   91 downloads

#28 Marius ONLINE  

Marius

    River Patroller

  • 4,803 posts
  • Location:Netherlands

Posted Fri Jan 1, 2010 5:31 AM

So it is later already ;)

Here is Mads 1.9 built for PPC (one day I'll figure out Universal binaries!):


First of all: Happy New year!! I hope 2010 will bring you all good Atari times!

Could you tell me what line you type at the terminal (mac os x) to compile it on or for PPC?

I used the example line at the top of the MADS.PAS file... but that did not work out very well.

I'm happy with all your help, and your binary too! But in the future I would love to be able to compile them myself, in case there is another update...

Thanks!
MArius

#29 spookt OFFLINE  

spookt

    Stargunner

  • 1,790 posts
  • This is SPARTA(DOS)
  • Location:Sunderland, UK

Posted Fri Jan 1, 2010 7:28 AM

So it is later already ;)

Here is Mads 1.9 built for PPC (one day I'll figure out Universal binaries!):


First of all: Happy New year!! I hope 2010 will bring you all good Atari times!

Could you tell me what line you type at the terminal (mac os x) to compile it on or for PPC?

I used the example line at the top of the MADS.PAS file... but that did not work out very well.

I'm happy with all your help, and your binary too! But in the future I would love to be able to compile them myself, in case there is another update...

Thanks!
MArius



Hi Marius

The strange thing is I just used the line from the top of the file something like fpc -Mdelphi -vh -O3 mads.pas from memory. Worked like a charm. Can you post your error messages ?

#30 Pengwin OFFLINE  

Pengwin

    Dragonstomper

  • 845 posts
  • So many projects, so little time...
  • Location:Scotland

Posted Fri Jan 8, 2010 5:05 PM

Sorry to hijack this thread.

... and cc65 is available straight from fink :) (<me> Hits control-C on the Terminal window running build of cc65 from source !)


I used to have cc65 installed on my G5 Mac. I have recently upgraded to a brand new intel iMac, and I can't for the life of me remember how I installed cc65. I have followed the instructions to install cc65 with DarwinPorts, but where do I put the atari specific libraries?

#31 cas OFFLINE  

cas

    Dragonstomper

  • 524 posts

Posted Sat Jan 9, 2010 7:23 AM

Brilliant! Thank you so much for those :) Can't wait to try them later.

Anyone know of a good 6502 disassembler for OS X?


I'll second that question. I've been searching the net for one but haven't managed to find one yet. Anyone?


The Monitor on the Atari800MacOSX has a disassembler build in (F8, then "d <address>"). That is what I use if I need to look at running code.

If I need to disassemble a file, I still use IDA Pro Freeware (in DOSBox on a MacOS X), you probably cannot find a better disassembler for 6502 ( http://en.wikipedia....ve_Disassembler ).

-- Carsten

Edited by cas, Sat Jan 9, 2010 7:24 AM.


#32 JAC! OFFLINE  

JAC!

    Stargunner

  • 1,813 posts
  • Always looking for GFX and MSX for my demos
  • Location:Lebach, Germany

Posted Thu Aug 26, 2010 3:01 AM

Hi Spookt,
How did you compile XASM under Mac OS X? I could only find a half finished compiler on source forge which does not even run on 10.5...

#33 spookt OFFLINE  

spookt

    Stargunner

  • 1,790 posts
  • This is SPARTA(DOS)
  • Location:Sunderland, UK

Posted Thu Aug 26, 2010 10:56 AM

Hi Peter

Download and build DMD. You'll need XCode (or another gcc compatible compiler).

To build DMD unpack it into a folder and the open a terminal and cd into dmd/src/dmd and use the osx.mak makefile to build it. I did make -f osx.mak. It drops the exes into dmd/osx/bin. There doesn't seem to be an install option in the osx makefile though so I just made the dmd obj2asm and shell files executable and ran dmd ../path/to/xasm/source/xasm.d which resulted in the xasm binary being built in the current directory.

Hope that makes sense if not shout and I'll try and help. I can also post a built xasm if you like?

#34 JAC! OFFLINE  

JAC!

    Stargunner

  • 1,813 posts
  • Always looking for GFX and MSX for my demos
  • Location:Lebach, Germany

Posted Thu Aug 26, 2010 12:54 PM

D V1.0 or V2.0? Which is required?

#35 spookt OFFLINE  

spookt

    Stargunner

  • 1,790 posts
  • This is SPARTA(DOS)
  • Location:Sunderland, UK

Posted Thu Aug 26, 2010 12:58 PM

Oops - possibly the wrong link there sorry.

I built version 1.063 from here.

HTH

Edited by spookt, Thu Aug 26, 2010 12:58 PM.


#36 atarixle OFFLINE  

atarixle

    Moonsweeper

  • 310 posts
  • Location:Germany

Posted Sat Aug 28, 2010 3:40 AM

did you take a look at this yet?

http://www.wudsn.com/ (click on WUDSN IDE)

#37 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • Topic Starter
  • 14,330 posts
  • Location:United Kingdom

Posted Sun Sep 1, 2013 11:22 AM

Anyone got a recent OS X build of MADS? I'm a few hours of downloads away from compiling one...



#38 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • Topic Starter
  • 14,330 posts
  • Location:United Kingdom

Posted Mon Sep 2, 2013 2:25 AM

Never mind - here's one if anyone needs it:

 

Attached File  MADS_1.9.6_Mac_OS_Intel.zip   297.85KB   54 downloads

 


  • skr likes this

#39 kogden OFFLINE  

kogden

    Dragonstomper

  • 636 posts

Posted Mon Sep 2, 2013 9:01 AM

I got WUDSN and MADS going pretty quickly under OSX 10.6.

You'll probably want to upgrade to at least 10.6 if you're Mac won't run 10.8.

10.6 is MUCH improved over 10.5 and takes better advantage of multiple cores. A lot of software requires 10.6 as a minimum as well. If you want open source goodies, you might want to install Fink as well.

The only think we still have running 10.5 is my son's G4 eMac because PPC support was dropped in 10.6.

Edited by kogden, Mon Sep 2, 2013 9:02 AM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users