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 / 99
98  |  100
Subject: 
cputw
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 30 Mar 1999 12:00:10 GMT
Viewed: 
1125 times
  
Maybe we'd better opt for

unsigned char c=word&0xff;
cputc_...
cputc_...
c=word>>8;
cputc_...
cputc_...

instead - your patch doesn't work with my compiler version! This may
generate better assembly code, too, as word is already in a register.

--
Markus L. Noga noga@inrialpes.fr
Check out legOS! http://www.multimania.com/legos/
"Quand on n'a pas de caractere, il faut bien se donner une methode."
-Camus on Software Engineering



Message has 1 Reply:
  Re: cputw
 
(...) By "doesn't work", I assume the patch applied successfully and your compiler barfed with some sort of error message or generated incorrect code. That would tend to (at least slightly) indicate that the problem that I was trying to fix may have (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Motor Speed Fix
 
Oops! The URL is (URL) have also added a patch to fix cputw(). (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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