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 / 1810
1809  |  1811
Subject: 
Assembly in my C-program
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 28 Mar 2001 11:34:11 GMT
Viewed: 
1390 times
  
HI,

I was wondering if I could write assembly code in my c-program. I would like to
access the motor output port as a digital port and control when it is on and
when off (possibly writting something like "mov.b r6l,@0xf000:16").

Or can I change the dmotor.h file and when I call the "motor_a_speed(1-255)",
actually to control the times the motor output port will go on and off?

Regards,
Athan



Message has 1 Reply:
  Re: Assembly in my C-program
 
(...) to (...) This should be performed by mapping a variable on top of the memory location, and NOT by inline assembly. (...) What is wrong with speed=0 for off and speed=255 for on? /jakob (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)

5 Messages 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