Jump to content

Photo

how do you integrate the ATARI.INC in the cc65-programm?


2 replies to this topic

#1 funkheld OFFLINE  

funkheld

    Moonsweeper

  • 265 posts

Posted Sun Sep 16, 2018 10:39 AM

Hi good afternoon.
how do you integrate the ATARI.INC in the cc65-programm?
 
in the folder INC folder are only h-files
 
Thank you.
greeting

Edited by funkheld, Sun Sep 16, 2018 10:43 AM.


#2 baktra OFFLINE  

baktra

    Dragonstomper

  • 512 posts
  • Location:Czech republic

Posted Mon Sep 17, 2018 2:01 AM

Hello funkheld.

 

The ATARI.INC file resides in the asminc directory. It contains symbolic constants for various addresses and values, no real code. If you need to use these symbolic constants in your CA65 assembler programs, use the .INCLUDE control command to include it.

The ATARI.H file resides in the include directory. It contains C declarations and some C preprocessor macros specific to the Atari platform. Use the #include preprocessor directive to include it.

 

Yes, C version of ATARI.INC would be valuable because of the symbolic constants, but it is not available, at least not yet.

 

To incorporate atari-specific libraries (real code from the lib/atari.lib file), keep passing the -t atari command line parameter to cc65, ca65, ld65 and cl65, whatever you are using.



#3 funkheld OFFLINE  

funkheld

    Moonsweeper

  • Topic Starter
  • 265 posts

Posted Mon Sep 17, 2018 9:21 AM

hello, thanks.

 

greeting.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users