Jump to content
IGNORED

AtaSimpleIO incompatible w/ MemXAtari?


Recommended Posts

Hi!  I saved about 2k of memory by converting my MadLibAtari code to use AtaSimpleIO instead of the standard I/O functions, but, when I run the program, it loads the stub files then crashes.  I believe the first thing it does is use AtaSimpleIO to print information.  I attached two files that may be causing the error.  Am I doing something wrong?

crt0_atari.s printc.s

Link to comment
Share on other sites

May not be the bug, but this seems strange

 

        if (i==136) {
            k=*(unsigned char*)(0x348+16);  <<< 0X348 is in IOCB0 +16 takes it into IOCB1 which starts at 0X350 ???
            aux_memcpyto (j, auxbufx, k);
            break;

 

Also maybe it's just me, but you mix freely Hex and Dec numbers in the same equations/calculations.

Just a hint, it's also very useful to use system equates if possible

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...