??? 06/01/07 07:46 Read: times |
#140141 - Long lines Responding to: ???'s previous message |
Lots of tools generate ASM or C source code.
By convention they normally use a sensible line length that a human can read in a normal text editor. I presume that you want to machine generate some more DB directives. You just have to write a small C program to output the required text. But format it so that you can read it. Then you should find no difficulties with any assemblers. Chico Magalhães said:
I think I found the problem on my code, really isnt in the code(logic), I found on asem51 htmls that the lines can be only 255 characters long... I was using: "TEXTDB: DB " here 11 chars, plus 44 8bit binary values, the binary 8 chars+ "," and "B" for each, there are 10 chars per binary. (44 x 10)+11=451 chars, I think this is the trouble, since I changed the binary values to decimal it started to work correctly. PS: It was bugging on value 26, that really is around 255.
I want thank all people helped me in this, say that I learned LOTS and LOTS about how microcontroller work here. Now my search is about MCU writing itself code memory (I think this calls IAP) and if is possible and how to load a DB with data from other file. Thanks again. |
Topic | Author | Date |
How to store data in 8051/DB command | 01/01/70 00:00 | |
More Detail | 01/01/70 00:00 | |
Data | 01/01/70 00:00 | |
DB | 01/01/70 00:00 | |
1k in db | 01/01/70 00:00 | |
depends | 01/01/70 00:00 | |
starting to understand | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
better? | 01/01/70 00:00 | |
Example ? | 01/01/70 00:00 | |
need... | 01/01/70 00:00 | |
Thats it | 01/01/70 00:00 | |
some answers... | 01/01/70 00:00 | |
I got MOVC! | 01/01/70 00:00 | |
The datasheet is the cuestion | 01/01/70 00:00 | |
store the A contents away... | 01/01/70 00:00 | |
cant debug a problem... | 01/01/70 00:00 | |
First step | 01/01/70 00:00 | |
a skywriter... | 01/01/70 00:00 | |
well, if you copy crap,, you get crap![]() | 01/01/70 00:00 | |
I always thought..... | 01/01/70 00:00 | |
Cant debug, explained + Code | 01/01/70 00:00 | |
I THINK i found the problem | 01/01/70 00:00 | |
Long lines | 01/01/70 00:00 |