English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i need to load an asciiz address into a register without using pseudocode intruction,

i have
la $a0, msg

i tried
lui $a0, msg
ori $a0, $a0, msg

but i keep getting error why????
thanks for your help :)

2006-10-16 11:42:54 · 2 answers · asked by dragongml 3 in Computers & Internet Programming & Design

2 answers

You need to tell us more information. Is this PowerPC? And how was msg defined? If it's an address of a string, then try loading it into a register. It's probably not an immediate constant, though, so you don't want an instruction that ends with i. I think the first thing you have is closest, but I really don't have enough info.

2006-10-16 13:11:42 · answer #1 · answered by arbeit 4 · 1 0

the code is wrong..
try to switch their positions

2006-10-17 17:43:50 · answer #2 · answered by Computer Scientist10 3 · 0 0

fedest.com, questions and answers