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 / 3662
3661  |  3663
Subject: 
Re: Further Adventures with Assembler
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 27 Jan 2004 16:54:56 GMT
Viewed: 
4089 times
  
In lugnet.robotics.rcx.legos, Mark Riley wrote:
In lugnet.robotics.rcx.legos, Michael Purvis wrote:
mov.b @(_myglobalarray, r3), r5

The line above should produce an error because you are specifying a byte move
into a word register.

Yeah... that was me being stupid. The types are all correct in the program. I
tried compiling without the .b and .w's, just to be sure and it's the same
error. The arrays that cause the problem are of type const char. There's three
that have 18 elements, and one that has 5.

The problem seems to be that it doesn't recognize the symbol 'myglobalarray'. In
the actual case, they're different names, but it just confuses me that it would
see it when it first appears and then trigger an error when it appears later on.

Mike



Message has 1 Reply:
  Re: Further Adventures with Assembler
 
(...) Got it. I just converted my whole program from C++ to C, and then it stopped whining. (20 years ago, 28-Jan-04, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Further Adventures with Assembler
 
(...) The line above should produce an error because you are specifying a byte move into a word register. The fact that it doesn't always cause an error makes me think there's something flakey (in the assembler) in the way instruction operand sizes (...) (20 years ago, 27-Jan-04, to lugnet.robotics.rcx.legos)

4 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