i am using masm to write assebmly language codes. can you please tell that how can i change binary numbers to its ascii ? like 10 is given what will be its ascii value ? i know that 30h is ascii value of 0 ans so on. please help.
10 in binary or 10 in decimal? In binary 10 is 2, which gives you the ASCII value for the control character STX. Really all you need to do is get the integer value and then treat it like a character. To be strictly correct with 7-bit ASCII, make sure that any significant bits beyond the 7th are cleared.
but my question is that like i have i/p a binary number say, 1010 (10 in decimal), then what will be its ascii which ahould be in o/p ? i am using MASM , which have many registers and i have to output value in one of them. in registers , we need to o/p the value in hex. right ?
P.S i am telling something(resgiters) and asking(remaining) something also.
but my question is that like i have i/p a binary number say, 1010 (10 in decimal), then what will be its ascii which ahould be in o/p ?
I'm assuming the input is four characters here, the string "1010", so you'd need to convert that to an actual decimal value. Then that value can be stored in a register and used to output the ASCII character corresponding to the decimal value 10 (a line feed).
I get the impression that you're confused about numeric representations. 1010b, 10, 12q, Ah, they're all the same thing. The only difference is how they're represented on output for a human reader. The computer only sees 1010.
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...