Matt Nejati
  • Male
  • Canada
Share on Facebook Share on Facebook Share

Matt Nejati's Friends

  • Japinder Nijjer
  • James Bateman
  • Michael Vinelli
  • Stuti R

Matt Nejati's Discussions

Problems with length of code?
2 Replies

I have written some code (My main file is about 250 lines long) and I have been trying to test it. If I comment all except the first little bit of my code, it performs exactly as I expect when I test…Continue

Started this discussion. Last reply by Yifan Wang Jan 28, 2011.

Gifts Received

Gift

Matt Nejati has not received any gifts yet

Give a Gift

 

Matt Nejati's Page

Latest Activity

Hollis Milroy commented on Matt Nejati's blog post Code too long?
"This is an old thread, but in case ppl still refer back to it: I only have one org statement. My code is in multiple files, and it compiles and loads my main.asm code and then my lcd.asm back to back in program memory. Also, I had to put everything,…"
Feb 28, 2011
Yifan Wang replied to Matt Nejati's discussion Problems with length of code?
"check the blog "Code too long?"http://www.pml4all.org/profiles/blogs/code-too-long   It explains everything, basically you need to put the tabling at the top of your code, so that when your PC increments, it won't over flow the…"
Jan 28, 2011
Rick Zhang replied to Matt Nejati's discussion Problems with length of code?
"Are you sure your code is only 250 lines long? If your code keeps reverting back to the beginning it may mean that you've filled up a page. But each page should be approximately 2000 instructions long, so if the entire code is only 250 lines…"
Jan 28, 2011
Matt Nejati commented on Matt Nejati's blog post Code too long?
"Thanks for the heads up"
Jan 27, 2011
Matt Nejati commented on Matt Nejati's blog post Code too long?
"I tried rearranging my code to include my DT statements on top as you guys suggested and everything seems to be working fine.    My LCD.asm still starts at 0x700 and it is still separate so it seems as the problem was the DT…"
Jan 27, 2011
Yifan Wang commented on Matt Nejati's blog post Code too long?
""QUOTING THE OTHER BLOG" If there is a certain length of code coming before the DT (define table) directive, then characters/entries in the DT past a certain point will fail to return a value. Instead, upon reaching that character, the…"
Jan 27, 2011
Yifan Wang commented on Matt Nejati's blog post Code too long?
"also, you should keep the LCD.asm at the beginning of your program mem, say 0x0100, and your code can begin in some later time say 0x0150, so you have the rest of the program mem for your main code if you wish to separate your .asm files"
Jan 27, 2011
Yifan Wang commented on Matt Nejati's blog post Code too long?
"I've seen one of my student in my lab session came across the very same problem. The quickest way to fix this is just to have everything in the same .ASM file.   I haven't figured out exactly why the code is behaving this…"
Jan 27, 2011
Matt Nejati commented on Matt Nejati's blog post Code too long?
"I am using the LCD/Keypad sample code which I have just modified. I had already moved the LCD.asm code to begin at 0x500 and it wasn't working so I tried it at 0x700 and the same thing happened with no noticeable difference in how far…"
Jan 26, 2011
Matt Nejati posted a blog post

Code too long?

I have written some code (My main file is about 250 lines long) and I have been trying to test it. If I comment all except the first little bit of my code, it performs exactly as I expect when I test it on the LCD and keypad. Naturally then I uncomment a little bit more, and when I try to test it, part way through the operation, it reverts back to the beginning of the code. I was thinking there was an error in the code I had written, so I tried debugging it in a number of different ways but I…See More
Jan 26, 2011
Matt Nejati posted a discussion

Problems with length of code?

I have written some code (My main file is about 250 lines long) and I have been trying to test it. If I comment all except the first little bit of my code, it performs exactly as I expect when I test it on the LCD and keypad. Naturally then I uncomment a little bit more, and when I try to test it, part way through the operation, it reverts back to the beginning of the code. I was thinking there was an error in the code I had written, so I tried debugging it in a number of different ways but I…See More
Jan 26, 2011
Matt Nejati has created a discussion in a Huddle workspace.
Jan 15, 2011
Matt Nejati is now a member of Personal Mechatronics Lab
Jan 6, 2011

Matt Nejati's Blog

Code too long?

I have written some code (My main file is about 250 lines long) and I have been trying to test it. If I comment all except the first little bit of my code, it performs exactly as I expect when I test it on the LCD and keypad. Naturally then I uncomment a little bit more, and when I try to test it, part way through the operation, it reverts back to the beginning of the code. 
I was thinking there was an error in the code I had written, so…
Continue

Posted on January 26, 2011 at 9:47pm — 10 Comments

Comment Wall

You need to be a member of Personal Mechatronics Lab to add comments!

Join Personal Mechatronics Lab

  • No comments yet!
 
 
 

© 2017   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service