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, msg2
ori $a0, $a0, msg2

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

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

2 answers

First, I assume that you mean assembly language. You don't state on what processor or which syntactical conventions (there are AT&T and Intel syntax in common use for x86 family processors). I further am led to believe that you mean pneumonic code instruction, since psuedocode is a standard for program design phase rather than anything to do with assembly language. This would point to the use of an assembler specific macro from a library or built in function. Without further information, it is impossible to directly answer your question, but I include the URL below that has many good tutorials linked to it, as well as compilers, other language tutorials and other tools for aspiring programmers. I hope that this helps you out. As an aside, the first language you'll need to program effectively is a better grasp of English. You'll find that even Bjourne Strustrup ( forgive me if I've botched the name! ), inventor of C++, stated English as a prerequisite to programming. Good luck.

2006-10-18 06:10:56 · answer #1 · answered by Anonymous · 0 0

You've asked this exact question before, I think. But you still don't give enough information, as Griz points out. You don't even tell us whether you get an error when trying to assemble the code, or at runtime. For all we know, the code you gave us is fine, and the problem lies elsewhere in your program.

2006-10-20 14:51:47 · answer #2 · answered by arbeit 4 · 0 0

fedest.com, questions and answers