Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-2007, 03:11 PM
Llamanade Llamanade is offline
Newbie
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0
Llamanade is on a distinguished road
Default Mips Assembly arrays

I need to be able to read through an array in mips assembly. the array looks like so.
Code:
array:	   .word [Some Hex value]
	     .word [Some Hex value]
             .word [Some Hex value]
             .word [Some Hex value]
             .word [Some Hex value]
             .word [Some Hex value]
             .word [Some Hex value]
i need to load these values into a register so I can then do arithmetic with them. I need to take the sum of all values. I think I can handle the rest, its just I cant find any info on iterating through the array to get al the values.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-01-2007, 02:24 AM
kromagnon kromagnon is offline
Learning Programmer
 
Join Date: Jun 2006
Posts: 53
Rep Power: 9
kromagnon is on a distinguished road
Default

You have to add multiples of 8 to the address of the beginning of the array to traverse to the next elements.
__________________
<!-- comment comment comment --></
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Assembly Tutorials Jordan General Programming 39 10-05-2008 05:40 PM
Arrays clookid PHP Tutorials 1 01-11-2007 09:30 PM
Assembly Applications skilletsteve General Programming 8 08-25-2006 07:32 PM
Arrays in NET 2.0 or CLI Managed C++ Void Managed C++ 1 07-18-2006 08:57 PM
Assembly usage DevilsCharm General Programming 2 07-13-2006 01:54 PM


All times are GMT -5. The time now is 06:21 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads