Jump to content



3

Time to abandon DASM


31 replies to this topic

#26 Dr. Kylstein OFFLINE  

Dr. Kylstein

    Combat Commando

  • 8 posts

Posted Fri Jan 6, 2012 8:01 PM

I have put together a basic example for building a DPC+ rom with the cc65 tools. It's a mash-up of GroovyBee's demo above and Spiceware's DPC+ demo. It includes conversions of all the headers. The resulting rom draws color bars on the screen (as in GroovyBee's demo) by doing round-robin accross the code banks. I'm quite new to Atari programming, but hopefully this will be useful to someone.

Edit: The Makefile is for GNU Make, it uses the Unix command 'cat' to combine the arm and 6502 pieces.

Edit2: I think I should mention that this is not a superset of any of the existing examples, it lacks some features.

Attached Files


Edited by Dr. Kylstein, Fri Jan 6, 2012 8:09 PM.


#27 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 5,782 posts
  • Busy bee!
  • Location:North, England

Posted Sat Jan 7, 2012 6:33 AM

If you need to include binary files just use the .incbin directive. Saves having any windows/linux issues with the makefile.

#28 Dr. Kylstein OFFLINE  

Dr. Kylstein

    Combat Commando

  • 8 posts

Posted Sat Jan 7, 2012 11:29 AM

Ok, here's one that builds in one step and includes a batch file. I knew about incbin but hadn't thought of using it this way.
Attached File  dpcplus_ca65.zip   15.63K   10 downloads

Edited by Dr. Kylstein, Sat Jan 7, 2012 11:30 AM.


#29 Dr. Kylstein OFFLINE  

Dr. Kylstein

    Combat Commando

  • 8 posts

Posted Sun Jan 8, 2012 12:37 PM

There were some mistakes in the converted macro.inc file. Here's one more update.
Attached File  dpcplus_ca65.zip   15.63K   20 downloads

#30 SvOlli OFFLINE  

SvOlli

    Space Invader

  • 38 posts
  • Location:Hannover, Germany

Posted Fri May 18, 2012 12:40 AM

 Dr. Kylstein, on Sun Jan 8, 2012 12:37 PM, said:

There were some mistakes in the converted macro.inc file. Here's one more update.
I guess, we need one more update here, as the archives include bankswitch_program.o instead of bankswitch_program.s, as needed by the Makefile.

Anyway it looks like a very nice start learning to understand DPC+, thanks.

#31 Dr. Kylstein OFFLINE  

Dr. Kylstein

    Combat Commando

  • 8 posts

Posted Fri May 18, 2012 12:06 PM

Ok, here it is with the right bankswitch program file. I should warn you that I haven't managed to get any non-trivial programs working with this. I think there may be a problem accessing the data fetch registers.

Attached Files



#32 SvOlli OFFLINE  

SvOlli

    Space Invader

  • 38 posts
  • Location:Hannover, Germany

Posted Sun May 20, 2012 4:50 AM

I just figured out another cause to abandon DASM: when compiled for the x86_64 architecture, it breaks during runtime stating errors like:
main.asm (64): error: Unknown Mnemonic '<some binary data>'.
Edit: this happened when invoking a macro (which was included from macro.h).

Edited by SvOlli, Sun May 20, 2012 5:04 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users