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 / 2709
2708  |  2710
Subject: 
Re: anyone know how to check free space on RCX?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 11 Jul 2002 04:09:38 GMT
Viewed: 
2241 times
  
I believe the code you are looking for is used in program.c (for LegOS> • v0.2.6)  When you press the View button (with no program running) LegOS will
show you "FREE", press again, you will get the most significant portion of
the free memory size (often 9999) and then press view again, you will get
the least significant portion of the free memory size.

The code is as follows:
lcd_int(mm_free_mem());
cputw(mm_free_mem());


Joseph,

what do you mean by most significant / least significant?  I'm under the
impression that those two calls just display the same value, in decimal
first and then in hex.

Cheers,
Albert



Message has 1 Reply:
  Re: anyone know how to check free space on RCX?
 
Albert Huang, Sorry for the confusion. "most significant" = upper 16 bits and "least significant" = lower 16 bits (the free memory is a 32 bit value). If you write the values out, you will get the 32 bit value (both values are hex) ... for example: (...) (22 years ago, 11-Jul-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: anyone know how to check free space on RCX?
 
kenneth, I believe the code you are looking for is used in program.c (for LegOS v0.2.6) When you press the View button (with no program running) LegOS will show you "FREE", press again, you will get the most significant portion of the free memory (...) (22 years ago, 10-Jul-02, to lugnet.robotics.rcx.legos)

13 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