Jump to content
IGNORED

Accessing the drive?


Recommended Posts

Just a small point @Harry Potter , I notice in your code there are still things like

 

char string[100]={"ABCDEF"};

 

then later you pass the string in a function like

 

result = myfunc(&string,a,b);

 

there is no need to use the "&", when you define a variable as char string[100] string is a pointer.

In your code although it will probably still work, you may be wasting cycles while the code gets the

address of 'string'.

 

I only say this as you said you want optimizations and this is one such way :)

 

  • Like 2
Link to comment
Share on other sites

Now, there is something wrong with the loadauxfile() function: it loads only one byte before exiting.  The aux memory contains more than one byte.  I attached the file containing the function.  Also, the extra Low me mory still crashes the system.  I attached the config and crt0.s files.

readauxfile.c atarixl_memx.cfg crt0.s

Link to comment
Share on other sites

?

8 minutes ago, Harry Potter said:

the file that is loaded into aux memory is empty.

No file is loaded into aux memory - by putting strings in that C file the resulting executable simply has a section that loads data there. So its like saying the a file is loaded into MAIN memory.

 

Link to comment
Share on other sites

I got it to work: I used #pragma data-name instead of #pragma rodata-name, and now that works.  But now, the XBUF memory area doesn't work.  I really want to use this buffer for code and data.  Maybe I'm doing it wrong.  I pasted the header code here.


.segment    "XBUFH"
.word        __XBUF__START__
.word        __XBUF__START__+__XBUF__SIZE__

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