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 / 3354
3353  |  3355
Subject: 
Re: Programming in Assembly
Newsgroups: 
lugnet.robotics.rcx, lugnet.robotics.rcx.legos
Date: 
Wed, 16 Jul 2003 20:19:38 GMT
Viewed: 
146 times
  
Here's a more direct link for the H8 docs:

http://www.eu.renesas.com/products/mpumcu/8bit/h8300/3297/h8_3297_eu.html

Scroll down to the literature section and download the two PDFs.

For assembly, I would recommend starting off with an installation
of BrickOS and perusing the various source code files for the
kernel.  You'll find a fair bit of assembly code mixed in with the
C code.

Of course, you must visit Kekoa's RCX Internals site:

http://graphics.stanford.edu/~kekoa/rcx/

Note:  Since you mentioned fiddling with the motor ports, the motor
bits on Kekoa's page are inverted from what they should be (I've
emailed him).  See this post for the correct bit patterns:

http://news.lugnet.com/robotics/?n=20725

For using the assembler and linker, this link has proved itself useful:

http://asis.web.cern.ch/asis/products/GNU.SYS/binutils-2.11.2/

Mark



Message has 1 Reply:
  Re: Programming in Assembly
 
Cool, thanks I was able to find the doc here: (URL) post about the motor seems helpful, so if I understand right the way to run motor A forward would be "mov 0x030003,r0h mov 0x80,r0h" and for the motor C the same except 0x06? How does the (...) (21 years ago, 17-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)

Message is in Reply To:
  Programming in Assembly
 
I was interested in writing some assembly code for the lego mindstorm, I don't plan on writing an incredibly complex program though. I am learning asm for the z80 chip so I have a little experience. I only want a single threaded application with one (...) (21 years ago, 16-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)

9 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