Jump to content
IGNORED

Compiling cc65 code for Atari?


Recommended Posts

Okay.  I built the file and ran it directly in the emulator.   It didn't work.  I used Dir2Atr to turn it into a disk image.  The emulator kept rebooting.  I added the DOS.SYS file, renamed the executable to AUTORUN.XEX and built the image as a DOS20 image.  I now get a program error.  Am I doing something wrong?

Link to comment
Share on other sites

I am working on an Atari port of my CBMSimpleIO library, which is a cc65 library that shortens code overhead if you only need basic console I/O by calling the ROM routines directly.  Following is the main() function of the test code:

void main()
{
    //unsigned i;
    unsigned char c;
    char s[81];
    writetitle ("Happy-Face!");
    prints ("Testing, 1, 2, 3, testing!\n");
    printcr ();
    printu (0); printcr();
    printu (401); printcr();
    printi(1); printc(','); printi(-1); printcr();
    printscr("Press any key to continue...");
    printc(getkey());
    printscr ("\nNow type in a line:");
    c=getline(s);
    prints ("\nLen: "); printu (c);
    prints ("\nLine: "); printscr (s);
    getkey();
    taby=0; tabx=10; printrscr ("<--->");
    tabx=9; printrscr ("<--->");
    //goline (21); prints ("End!");
    taby=20; prints ("End!");
    //goline (0);
}

My printc code:

_printc=$f6a4

My getkey code:

_getkey=$f6e2

Both functions ae declared as __fastcall__, so that couldn't be the issue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...