![]() |
|
#21
|
|||
|
|||
Re: ASM programWell looking up in your registers window.
In the center I see: R8 thru R15 are t0 thru t7. On the top right I see that R24 and R25 are t8 and t9. That's all the t's I see. You can probably use others but you might want to check the conventional usage charts in the tutorial. Keep in mind that there are only 4 32-bit general registers on an Intel CPU. As a result you employ other techniques to store your data, like variable storage. Maybe an array of bytes if the count is to be less than 255, 16 bit 'words' or 32 bit 'ints'. It is faster to use registers but you can't expect an endless supply of them to use. In fact it would be a good exercise to use an array for count storage, I'm glad you brought it up... You could also use an array to store one long output string and change certain bytes to report certain 'count's instead of having to repeat all that output code. Or one copy of that could be put in a loop and the 'count' values could come from arrays which you would increment through as the print loop iterates. Where do YOU want to go... |
|||
|
#22
|
|||
|
|||
Re: ASM programYes well there are several registers so yep like i said im trying others for char5 etc...
Yep im actually getting the hang of this now and i would just like to thank you for providing some tips Howard! haha im also happy i managed to use my brain and find a way of getting it to work! |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Equation solver | RazoR | C Programming Language | 3 | 18-May-2008 10:24 |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| BOOKEEPING program, HELP!! | yabud | C Programming Language | 10 | 17-Nov-2006 04:48 |
| Help with a complex program | lordfuoco | C++ Forum | 5 | 24-Jun-2006 07:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The