Mips Storage Byte by Byte
up vote
0
down vote
favorite
Ok so let's say I have a value 0x00003534 where 0x34 is at the address 0x7fffffffa. I want to start storing putting the values in a temp register one at a time. So on the first iteration $t0 will look like 0x00000034. Then I move to address 0x7ffffffb and store in $t0 so it looks like 0x00003534. I'm able to move from 0x7fffffffa to 0x7ffffffb properly and grab the new value to be store, but when i try to put it in $t0 it just overwrites 34. I can't just LH and move it all at once because the value won't necessarily always be a half word. So I need to iterate through and store byte by byte until null is hit. Any ideas?
load byte mips store
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
Ok so let's say I have a value 0x00003534 where 0x34 is at the address 0x7fffffffa. I want to start storing putting the values in a temp register one at a time. So on the first iteration $t0 will look like 0x00000034. Then I move to address 0x7ffffffb and store in $t0 so it looks like 0x00003534. I'm able to move from 0x7fffffffa to 0x7ffffffb properly and grab the new value to be store, but when i try to put it in $t0 it just overwrites 34. I can't just LH and move it all at once because the value won't necessarily always be a half word. So I need to iterate through and store byte by byte until null is hit. Any ideas?
load byte mips store
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Ok so let's say I have a value 0x00003534 where 0x34 is at the address 0x7fffffffa. I want to start storing putting the values in a temp register one at a time. So on the first iteration $t0 will look like 0x00000034. Then I move to address 0x7ffffffb and store in $t0 so it looks like 0x00003534. I'm able to move from 0x7fffffffa to 0x7ffffffb properly and grab the new value to be store, but when i try to put it in $t0 it just overwrites 34. I can't just LH and move it all at once because the value won't necessarily always be a half word. So I need to iterate through and store byte by byte until null is hit. Any ideas?
load byte mips store
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Ok so let's say I have a value 0x00003534 where 0x34 is at the address 0x7fffffffa. I want to start storing putting the values in a temp register one at a time. So on the first iteration $t0 will look like 0x00000034. Then I move to address 0x7ffffffb and store in $t0 so it looks like 0x00003534. I'm able to move from 0x7fffffffa to 0x7ffffffb properly and grab the new value to be store, but when i try to put it in $t0 it just overwrites 34. I can't just LH and move it all at once because the value won't necessarily always be a half word. So I need to iterate through and store byte by byte until null is hit. Any ideas?
load byte mips store
load byte mips store
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 16 at 21:28
Daniel Schilling
1
1
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Daniel Schilling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Daniel Schilling is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Schilling is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Schilling is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Schilling is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53345649%2fmips-storage-byte-by-byte%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown