Jump to content



0

Programming for the 7800 on Mac OS X?


20 replies to this topic

#1 DracIsBack OFFLINE  

DracIsBack

    River Patroller

  • 3,963 posts
  • Location:Toronto, Canada

Posted Sun Feb 1, 2004 8:53 AM

Any Mac users out there tried developing Atari games? I'd like to kick around developing for the 7800 but I don't have the foggiest idea on where to begin. Any tools for the Mac side of things that people use?

#2 nudicle OFFLINE  

nudicle

    Space Invader

  • 33 posts
  • Location:boston

Posted Sun Feb 1, 2004 9:17 AM

I got interested in doing 2600 development about a week ago on my mac (panther). There are a bunch of 2600 programming resources available through atariage, but I haven't been able to find much on os x specific stuff. If you search the web you'll come across tools like rasm, which want to work with MPW which is obviously defunt for many of us. dasm, distributed here : http://www.atari2600.org/dasm/ contains a mac os x binary, but it doesn't seem to want to assemble even the most simple 2600 asm source (at line 1, "processor 6502", it immediately fails to recognize the 6502 mnemonic). I'm not sure what's going on .... as I said, I've been looking into this a very short time and only actually tried to invoke dasm for the first time last night.


If I had any 7800 information I'd pass it along, but I've only looked at 2600 stuff at this point.


#3 Emehr OFFLINE  

Emehr

    River Patroller

  • 3,217 posts
  • Happiness is... a chomping Pac-Man!
  • Location:An obscure body in the SK system

Posted Sun Feb 1, 2004 6:59 PM

nudicle said:

dasm, distributed here : http://www.atari2600.org/dasm/ contains a mac os x binary, but it doesn't seem to want to assemble even the most simple 2600 asm source (at line 1, "processor 6502", it immediately fails to recognize the 6502 mnemonic). I'm not sure what's going on

:idea: Be sure to download the Atari 2600 Support Files from the DASM site and put 'em in your project directory. They're VCS.h and macro.h.

And it is possible to use MPW on OSX. Runs fine in classic mode.

Jason

#4 Heaven/TQA OFFLINE  

Heaven/TQA

    Quadrunner

  • 8,109 posts
  • Location:Baden-Württemberg, Germany

Posted Mon Feb 2, 2004 12:10 AM

ehm... the guy wants to start with 7800 not 2600... it would be the same like starting coding on PS2 with PSone or GBA coding and using just the GB stuff...

i never touched 2600 abilities on 7800...why should i... (otherwise i can code 2600 directly... ;))

#5 ApM OFFLINE  

ApM

    Combat Commando

  • 8 posts
  • Location:Winnipeg, MB, Canada

Posted Wed Feb 18, 2004 11:21 AM

The only other tool besides DASM that's really used for 7800 dev at this point is a78sign. I recall it being a bit annoying to build, so I put up my binary here.

There's a tool floating around for creating .a78 headers as well, but I was never able to find the source to it and eventually just stuck raw header data into my assembly files. There's a thread about that someplace.

And MPW under OS X? Ugh! God, why? =]

#6 EricBall OFFLINE  

EricBall

    Dragonstomper

  • 711 posts
  • Location:Markham, Ontario, Canada

Posted Wed Feb 18, 2004 11:43 AM

Heaven/TQA said:

i never touched 2600 abilities on 7800...why should i... (otherwise i can code 2600 directly... ;))

The 2600 part of the 7800 gets used for sound and joystick/paddle/switch I/O. And the 7800 dev docs refer to the 2600 dev docs for that info.

#7 Bakasama OFFLINE  

Bakasama

    Stargunner

  • 1,101 posts
  • Moldova does it again.

Posted Sun Feb 22, 2004 5:06 PM

Homebrews from a Mac? That's sounds interesting since many of 7800 games were programmed on Macs. I think it would make homebrewing a bit easier to understand if there was simple game/demo that users can take apart and modify.

#8 EricBall OFFLINE  

EricBall

    Dragonstomper

  • 711 posts
  • Location:Markham, Ontario, Canada

Posted Mon Feb 23, 2004 7:23 PM

Bakasama said:

I think it would make homebrewing a bit easier to understand if there was simple game/demo that users can take apart and modify.

Check out my 7800 mega sprite demo (source included)
Posted Image
http://ericball.atar...om/balldemo.zip

Edited by EricBall, Mon Apr 18, 2005 10:29 AM.


#9 Bruce Tomlin OFFLINE  

Bruce Tomlin

    River Patroller

  • 3,531 posts
  • CD C9 01
  • Location:Austin, TX

Posted Tue Feb 24, 2004 12:22 AM

A while back I converted my old 6502 and Z-80 assemblers to C, so that I could do everything short of using a ROM burner on a Powerbook. I found my original Stella CD tonight, and I was surprised to find an older version of my 6502 assembler on it, from before I added macro parameters.

So I just now spent a couple of hours cleaning up the new code. I haven't given it much serious use, because I've mostly been doing Colecovision stuff since the C conversion. But it works fine on some basic tests.

http://xi6.com/files/asm6502-1.5.tgz
http://xi6.com/files/makerom.tgz

It's straight ANSI C and compiles just fine under xcode.

#10 Jacob Rose OFFLINE  

Jacob Rose

    Dragonstomper

  • 540 posts
  • Location:Fairfax, Virginia

Posted Sun May 15, 2005 7:50 PM

nudicle, on Sun Feb 1, 2004 10:17 AM, said:

...If you search the web you'll come across tools like rasm, which want to work with MPW which is obviously defunt for many of us. dasm, distributed here : http://www.atari2600.org/dasm/ contains a mac os x binary, but it doesn't seem to want to assemble even the most simple 2600 asm source (at line 1, "processor 6502", it immediately fails to recognize the 6502 mnemonic). I'm not sure what's going on ....

Hi all,

I'm trying to find DASM for OS X now, and http://atari2600.org/dasm is giving me a 404 - anybody know what happened to Davies' page? More immediately, anybody know where I can get a copy of the OS X binary or the source so I can build it myself?

Thanks,
Jacob

#11 Raiu OFFLINE  

Raiu

    Chopper Commander

  • 125 posts

Posted Thu Aug 4, 2005 12:20 AM

I bring this topic back from the dead!

Okay, I have DASM for Mac OSX, but when I run it, all I get is:

Quote

DASM sourcefile [options]
-f#      output format
-oname  output file
-lname  list file
-Lname  list file, containing all passes
-sname  symbol dump
-v#      verboseness
-t#      Symbol Table sorting preference (#1 = by address.  default #0 = alphabetic)
-Dname=exp  define label
-Mname=exp  define label as in EQM
-Idir    search directory for include and incbin
-p#      max number of passes
-P#      max number of passes, with less checks
Fatal assembly error: Check command-line format.
logout
[Process completed]


And that's it. I can't figure out how to *do* anything with it.

-DS-

#12 Jacob Rose OFFLINE  

Jacob Rose

    Dragonstomper

  • 540 posts
  • Location:Fairfax, Virginia

Posted Thu Aug 4, 2005 4:42 AM

Raiu, on Thu Aug 4, 2005 2:20 AM, said:

I bring this topic back from the dead!

Okay, I have DASM for Mac OSX, but when I run it, all I get is:

Quote

DASM sourcefile [options]
-f#      output format
.
.
.
Fatal assembly error: Check command-line format.
logout
[Process completed]

And that's it. I can't figure out how to *do* anything with it.

-DS-

View Post


Assuming you have an ASM file for the 2600 , the magic formula is:

dasm game.asm -f3 -ogame.bin

If it succeeds, that'll produce a ROM file called game.bin. Why -f3? No idea. But it works. =)

#13 Tom OFFLINE  

Tom

    Moonsweeper

  • 449 posts
  • Location:Switzerland

Posted Thu Aug 4, 2005 5:01 AM

Jacob Rose, on Thu Aug 4, 2005 5:42 AM, said:

If it succeeds, that'll produce a ROM file called game.bin. Why -f3? No idea. But it works. =)

-f3 causes dasm to write a flat ROM image without any additional information. There are two other output file formats, iirc one of them has a load address in its first two bytes or something like that.

#14 Raiu OFFLINE  

Raiu

    Chopper Commander

  • 125 posts

Posted Fri Aug 5, 2005 7:09 AM

Jacob Rose, on Thu Aug 4, 2005 6:42 AM, said:

Assuming you have an ASM file for the 2600 , the magic formula is:

dasm game.asm -f3 -ogame.bin

If it succeeds, that'll produce a ROM file called game.bin. Why -f3? No idea. But it works. =)

View Post


I have an ASM file, but it's still not working.

When I run DASM from the finder, I just get the gibberish I already quoted. When I typed what you suggested (substituting the file name for "game.asm", of course), all I get is "-bash: dasm: command not found".

The shell isn't recognizing the program, and the program isn't recognizing the ASM file.

Edit: And, yeah, I'm in the right directory. The ls command shows that dasm is in the current directory, but it's not running it when I type the command.

-DS-

Edited by Raiu, Fri Aug 5, 2005 7:16 AM.


#15 Tom OFFLINE  

Tom

    Moonsweeper

  • 449 posts
  • Location:Switzerland

Posted Fri Aug 5, 2005 7:53 AM

Raiu, on Fri Aug 5, 2005 8:09 AM, said:

And, yeah, I'm in the right directory. The ls command shows that dasm is in the current directory, but it's not running it when I type the command.

Then on your system the current dirtectory (.) probably isn't in the shell's search path (on most unix systems it isn't by default, for good reason).

Try this:

./dasm game.asm -f3 -ogame.bin

#16 Raiu OFFLINE  

Raiu

    Chopper Commander

  • 125 posts

Posted Fri Aug 5, 2005 8:14 AM

Yes! That did it.

(I also had problems because the filename was too long, but I figured that one out myself) :)

Thank you :)

-DS-

#17 ~llama OFFLINE  

~llama

    Moonsweeper

  • 496 posts
  • temporary like Achilles
  • Location:Memphis

Posted Wed Jan 11, 2006 5:39 PM

Is MESS the only emulator for OS X that is suitable for homebrew development? I really want to program some 7800 stuff, but... I don't have an EPROM burner so emulation is really the only way for me to do it. CC2 is a little out of my starving college student budget.

#18 Bruce Tomlin OFFLINE  

Bruce Tomlin

    River Patroller

  • 3,531 posts
  • CD C9 01
  • Location:Austin, TX

Posted Fri Jan 13, 2006 12:10 PM

~llama, on Wed Jan 11, 2006 6:39 PM, said:

Is MESS the only emulator for OS X that is suitable for homebrew development? I really want to program some 7800 stuff, but... I don't have an EPROM burner so emulation is really the only way for me to do it. CC2 is a little out of my starving college student budget.
MESS is the only 7800 emulator on OS X that is suitable for anything. But for 7800 development, really no emulator on any OS is suitable for homebrew development, because I'm pretty sure that none of them implement MARIA DMA cycle stealing or MARIA DMA running out of cycles at the end of a scan line. Both can bite you pretty hard if you never use the real hardware.

Edited by Bruce Tomlin, Fri Jan 13, 2006 12:10 PM.


#19 Schmutzpuppe OFFLINE  

Schmutzpuppe

    Dragonstomper

  • 782 posts
  • Location:Germany

Posted Fri Jan 13, 2006 1:37 PM

Bruce Tomlin, on Fri Jan 13, 2006 7:10 PM, said:

~llama, on Wed Jan 11, 2006 6:39 PM, said:

Is MESS the only emulator for OS X that is suitable for homebrew development? I really want to program some 7800 stuff, but... I don't have an EPROM burner so emulation is really the only way for me to do it. CC2 is a little out of my starving college student budget.
MESS is the only 7800 emulator on OS X that is suitable for anything. But for 7800 development, really no emulator on any OS is suitable for homebrew development, because I'm pretty sure that none of them implement MARIA DMA cycle stealing or MARIA DMA running out of cycles at the end of a scan line. Both can bite you pretty hard if you never use the real hardware.

View Post

Unfortunately that’s true for all existing emulators :(
But if you keep the limitations in mind they are still useful for development.

#20 ~llama OFFLINE  

~llama

    Moonsweeper

  • 496 posts
  • temporary like Achilles
  • Location:Memphis

Posted Fri Jan 13, 2006 3:37 PM

Well that sucks. Guess I'll try to throw together an EPROM burner.

...by MARIA cycle stealing, are you saying the emulators leave the 6502 running during MARIA DMA?

Edited by ~llama, Fri Jan 13, 2006 3:44 PM.


#21 Schmutzpuppe OFFLINE  

Schmutzpuppe

    Dragonstomper

  • 782 posts
  • Location:Germany

Posted Fri Jan 13, 2006 7:38 PM

~llama, on Fri Jan 13, 2006 10:37 PM, said:

Well that sucks. Guess I'll try to throw together an EPROM burner.

...by MARIA cycle stealing, are you saying the emulators leave the 6502 running during MARIA DMA?

View Post

Well I am not sure about that but the emulators don't count MARIA cycles so they let you draw more gfx than MARIA is able to handle.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users