To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *8445 (-20)
  Re: BrickOS Assembler
 
(...) Volatile tells the compiler that should assume the value can change without the compiler's knowledge. So yes, it gets reloaded every time. (...) To find this stuff, you need to read through documentation for GCC. It has been a few years since (...) (21 years ago, 21-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: WORDLIST
 
(...) Long time no see:) Below is source for .S DUMP WORDS and SEE. Usage of the individual words should be basically clear, but I have some remarks nontheless: - Those words were originally embedded in a collection of words that I always load. I (...) (21 years ago, 21-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: BrickOS Assembler
 
(...) Oh, I see. That's nifty. So a 'volatile' keyword ensures that it's reloaded every time? (...) Which doc is this? The only ones I have are the BrickOS command reference (it's a shorter HTML one), and the software manual from Hitachi. (...) (...) (21 years ago, 20-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) Glad to help! (...) However, it *does* work for bytes... See the program below. In your example program, you declared the "total" variable as an unsigned short (which is a 16-bit word), but accessed it using an 8-bit move instruction. Instead, (...) (21 years ago, 20-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) PERFECT. That was exactly what I was looking for. Clearly, the @_variablename method only works for words and not bytes. This had been my problem. Thanks very much. And thanks to everyone else who contributed too... I'm just a sucker for the (...) (21 years ago, 19-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) One more answer... :-) Mark #include <unistd.h> #include <conio.h> int x = 10; int y = 5; int z; int main() { __asm__(" mov @_x,r0 mov @_y,r1 add r1,r0 mov r0,@_z "); lcd_int(z); msleep(5); return 0; } (21 years ago, 19-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) In rethinking I think that compiling with the -S option will do what you want. It should create a file with a .s suffix. -S makes the compiler compile, but not assemble. Kevin "YOU ARE A GENIUS!!!!!! you can put that in your sig file!!!" Chris (...) (21 years ago, 19-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) I recommend compiling with the -gstabs+ option (by modifying the makefile). After your .lx file is generated use "h8300-hms-objdump --disassemble-all --source > my.lst" to get a disassembled file with the C source intermixed.into the file (...) (21 years ago, 19-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) Hi Mike, Check out the source for memcpy.c in the C library. It's not immediately clear, but the directives at the end of the __asm__ section beginning with "r" associate the %n macros with the given variables. I'm not sure of the exact syntax (...) (21 years ago, 18-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
(...) I need to access elements of a 2d array. I don't think this is an option for that. Nevertheless, could you post code that demonstrates this? (...) How do I do that? (...) ??? (...) Hmm... this sounds more like what I'm trying to do. Someone? (...) (21 years ago, 18-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: BrickOS Assembler
 
Hi, Michael. I had some trouble with getting variables into registers, as well. I can think of three ways: 1) Pass the variable to a function - the first function argument seems to be r0. You can easily experiment with this by inspecting the (...) (21 years ago, 18-Jan-04, to lugnet.robotics.rcx.legos)
 
  RE: WORDLIST
 
Ernst! Good to see you're still among us. I'd be happy to post your WORDS and SEE (with appropraite credit) and write up a little tutorial on their usage. You can post them here and also email them to me directly. Cheers, Ralph (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: Brickos fun and games!
 
(...) I actually had this exact problem at the Hobby Show. I was in a hurry and didn't want to think about it (all I was doing was tweaking the light sensor thresh), so I just rebooted every time. Chris: I had lots of trouble too, but the final (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.legos, FTX)
 
  Re: NEWBIE question : installing BrickOS
 
I hate to see questions go unanswered. Steve H replied to me saying it took him 12 hours under these conditions, and now that I have done it I can say it took my P233 laptop a full 24 hours to install brickOS under Paolo's instructions. I'm also sad (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: WORDLIST
 
(...) I wrote WORDS and SEE and some other useful stuff for pbforth 1.21. SEE is a bit rough, it doesn't handle IF, LOOP etc. very graciously but just dumps out bytes. If the dictionary structure hasn't changed in 2.0 they should still work. If (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  BrickOS Assembler
 
Okay, I'm working on a proc in ASM, and I need help with using MOV to move stuff back and forth between memory and registers. I have the following (very simple) program working, but I can't for the life of me get the MOV to work. I've got the (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.legos)
 
  Re: WORDLIST
 
(...) Well, not *very* important, perhaps (no need to hurry), but it'd be useful. I haven't done very much FORTH programming since the 80's, and I even then I wasn't exactly a pro FORTHer. Also, I was used to F-PC (and/or TCOM), and my FORTH (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) Ah, I didn't know of that. (...) BTW, I'd like to suggest (to Ralph, not you) that the pbForth scripts included in the release should use .4th or .fth or something a bit more distinctive. They're now .txt, so BricxCC does not recognize them. (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) snip A while ago, I started to work on a few words that I find useful,including WORD and SEE. I still have to finish them, but what would help is to know the structure of the dictionary (starting with the execution address obtained by tick (...) (21 years ago, 17-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) The pbForth documentation which is included with the latest release of BricxCC indicates which of the ANS FORTH words are supported by pbForth. If you open a forth document (one with an extension which BricxCC recognizes as a forth document) (...) (21 years ago, 16-Jan-04, to lugnet.robotics.rcx.pbforth)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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