Help Logs Database

Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Ircnet  |  Dalnet
<Jorget> How can i "declare" a int space in mips ***embly? Im trying something like: A: .int 0; but its not work
<wobster> try .word maybe
<Jorget> .space 4 works? 4 bytes..
<MrP> Hello
<libero> whats ur question?
<MrP> I'm having problems with a very simple issue I'm thinking. I have a character stored in the AL register in the hexadecimal format. How can I convert it to the letter equivalent?
<MrP> I just want to get it in the edx register so I can call a writestring method
<libero> what format ur write method expects?
<MrP> I'm grabbing 3 characters from a string, and I'm doing it in a loop. I need to grab one character in each p*** of the loop, toss it in the edx register, and then print it on the screen
<MrP> To be honest, I'm not sure. I'm just using one that is included with the ***embler that our course is using :/
<libero> well u have to find out'
<MrP> Let me grab my book
<libero> trial & error
<wobster> MrP, you surely don't have it in a reg and it has some form different from binary
<MrP> libero: http://people.cs.und.edu/~wenchen/course/250/week9/5.html
<libero> it has to be binar by the end of the day :)
<wobster> *sigh*
<libero> MrP, yes mate
<libero> that's ascii
<MrP> I was trying to do this: mov [thestring+eax], al and then do mov edx, OFFSET thestring, but it doesn't like me :)
<MrP> thestring was of type BYTE
<libero> mate
<libero> p*** writestring a pointer to the first char
<libero> that's it
<libero> it will stop on NULL
<MrP> Does the first character need to be in a variable?
<libero> depends on the function
<MrP> If you have time (if you don't, I definitely understand), here is the quick program: http://people.aero.und.edu/~sneuerbu/250/lab/ , click on lab 3 and submit
<MrP> If you go down to the line: FinalLoop:, that is where the problem is at
<MrP> string1 is the string I'm taking characters out of
<libero> u know what does eax consist of?
<MrP> eax just gets the number of characters into the string it needs to grab the character from
<libero> no, i meant in general
<libero> eax = ah + al
<libero> that overwrites al that you've just filled
<MrP> Hmmmmm, I was thinking al was part of edx for some reason
<MrP> That would definitely explain things
<Jorget> .space 4 works? Im trying to "declare" a int space in mips ***embly...
<MrP> Thanks libero, I think I figured everything out
<libero> cheers


Return to asm
or
Go to some related logs:

usbstick reset
frimija 06/07

Copyright © 2005 www.irclogs.ws. All rights reserved. » disclaimer » contact