Jump to content



0

DASM for intel Macs?


7 replies to this topic

#1 Wickeycolumbus OFFLINE  

Wickeycolumbus

    River Patroller

  • 4,064 posts
  • Location:Michigan

Posted Thu Jul 21, 2011 5:54 PM

Is there a version of DASM compiled for Intel Macs? I'm trying to run it on my new MacBook Pro but it requires me to install Rosetta from the disk it came with which I don't have at the moment. Thanks!

#2 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,236 posts
  • begin 644 contest

Posted Thu Jul 21, 2011 5:56 PM

View PostWickeycolumbus, on Thu Jul 21, 2011 5:54 PM, said:

Is there a version of DASM compiled for Intel Macs? I'm trying to run it on my new MacBook Pro but it requires me to install Rosetta from the disk it came with which I don't have at the moment. Thanks!
If you try to run a GUI-based PPC app, it will give you the option to download Rosetta instead of asking for a disk.

#3 Wickeycolumbus OFFLINE  

Wickeycolumbus

    River Patroller

  • 4,064 posts
  • Location:Michigan

Posted Thu Jul 21, 2011 6:21 PM

View Postbatari, on Thu Jul 21, 2011 5:56 PM, said:

View PostWickeycolumbus, on Thu Jul 21, 2011 5:54 PM, said:

Is there a version of DASM compiled for Intel Macs? I'm trying to run it on my new MacBook Pro but it requires me to install Rosetta from the disk it came with which I don't have at the moment. Thanks!
If you try to run a GUI-based PPC app, it will give you the option to download Rosetta instead of asking for a disk.

Thanks! Believe it or not, I'm having trouble finding PPC apps. Anyway, looks like Lion is dropping Rosetta support... Would it be easy to build a version for Intel Macs?

#4 SpiceWare OFFLINE  

SpiceWare

    Quadrunner

  • 5,990 posts
  • Medieval Mayhem
  • Location:Planet Houston

Posted Fri Jul 22, 2011 12:39 PM

Didn't realize DASM was PPC only. I'll see about building an Intel version next week as I'm heading out of town for the weekend.

#5 ibogost OFFLINE  

ibogost

    Chopper Commander

  • 136 posts
  • Location:Atlanta

Posted Sun Jul 24, 2011 7:26 PM

I managed to get dasm compiled for Intel, but I'm having some sort of problem related to macros.

I get illegal character errors reported from the assembler for some, but not all instructions defined inside MAC/ENDM. Sometimes these lead to Segmentation fault: 11 errors.

Assembling without Macro definitions works fine.

I thought maybe this was a text encoding issue, but experimentation with both the input and the compilation seems to suggest that it's not.

Has anyone run into this before with dasm?

#6 ibogost OFFLINE  

ibogost

    Chopper Commander

  • 136 posts
  • Location:Atlanta

Posted Mon Jul 25, 2011 7:10 AM

I asked around and it seems that the Macro and Repeat code in DASM has been buggy for some time now. Everyone's been using old binaries so they haven't noticed. Does anyone have source from earlier versions? I've tried compiling all the versions in the Sourceforge SVN and they all have the same problem... I don't have the time or patience to go dig in the code; would rather just find a build that runs.

#7 Joe Musashi OFFLINE  

Joe Musashi

    Space Invader

  • 30 posts

Posted Mon Jul 25, 2011 3:27 PM

I also gave compiling a try and ran into the same problem. So it looks like this is a 64bit issue. When I compile with a 32bit target (just replacing "CC= gcc" with "CC= gcc -m32" in src/Makefile) it seems to work.

When assembling the boing26.asm demo in the test directory with that, the resulting output is the same as the reference binary boing26.bin.ref. I also tried with the Medieval Mayhem source and that worked too.

If you want to give it a shot, below's the executable.

This is DASM 2.20.11 from here

http://sourceforge.n...tar.gz/download

compiled with gcc 4.2.1 that came with Xcode 4.1.

Of course, there are no guarantees how stable this build is.

Attached Files



#8 ibogost OFFLINE  

ibogost

    Chopper Commander

  • 136 posts
  • Location:Atlanta

Posted Mon Jul 25, 2011 5:54 PM

OMG Joe I think this worked! I didn't download your binary yet (I will), but I tried the 32 bit compile and it seems to assemble properly. Need to do a few more tests to confirm.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users