GIDForums  

Go Back   GIDForums > Computer Programming Forums > Assembly Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #21  
Old 22-Feb-2009, 10:53
Howard_L Howard_L is offline
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 803
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: ASM program


Well 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  
Old 22-Feb-2009, 11:01
PaulGarcha PaulGarcha is offline
New Member
 
Join Date: Feb 2009
Posts: 12
PaulGarcha is on a distinguished road

Re: ASM program


Yes 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 GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 22:40.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.