To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 996
995  |  997
Subject: 
Calling ROM from libc
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 8 Apr 2000 00:30:38 GMT
Viewed: 
2848 times
  
Hi all.

This is just a quick moral question. I noticed that the RCX ROM has a
copy memory routine (0x042a). I've modified my memcpy.s to use this:

_memcpy:
        push    r0
        mov.w   r1,r0
        add.w   r2,r1
        pop     r2
        jmp     @ mem_copy
       .end

And added mem_copy=0x042a to h8300.rcx. This seems to work great, and
makes programs which use memcpy (including the kernel) smaller, but it
does make libc "RCX specific". Is this a bad thing? Any comments
welcome.

Regards

ROSCO



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR