Forum: Assembly Feb 20th, 2008 |
| Replies: 1 Views: 1,653 You might want to remember to load (E)DS at the beginning of your program.
All the functions you are using (with 'call') have a register call type, meaning that arguments are passed in registers.... |
Forum: Assembly Jan 6th, 2008 |
| Replies: 5 Views: 2,077 The easiest way to compare two strings depends entirely upon your assembler.
Chances are though that you might do just as well to write it yourself. First you need to have a good 80x86 assembly... |
Forum: Assembly Dec 23rd, 2007 |
| Replies: 6 Views: 1,630 Ah, well, then you've got yourself in a ball of mud.
One of the primary functions of the OS is to load and execute a program. How this happens is typically and entirely dependent on the OS.
For... |
Forum: Assembly Dec 22nd, 2007 |
| Replies: 6 Views: 1,630 In assembly? You can (maybe) but is it worth the effort you'll need to write the loader?
The OS exists to make complicated things simple. Just use the OS functions. |
Forum: Assembly Dec 18th, 2007 |
| Replies: 3 Views: 946 Assuming EBX isn't clobbered by the function, then yes, it should work. |
Forum: Assembly Dec 18th, 2007 |
| Replies: 2 Views: 881 You have failed to use the proper directives to organize your code and data. Please read TASM's documentation.
I should note also that you've got some pretty egregious errors there, particularly... |
Forum: Assembly Dec 14th, 2007 |
| Replies: 9 Views: 2,002 Your code is somewhat verbose, so it is a little difficult to follow...
I got as far as out2. You are shifting bits off the end of AX. I'm still not sure how you are getting your outputs. But,... |
Forum: Assembly Dec 14th, 2007 |
| Replies: 9 Views: 2,002 Well, I've been playing with it and I can't match your exact description. I presume you are using MIME encoding.
To preserve spacing, I'll continue in a code block:
"Man A" should encode as... |
Forum: Assembly Dec 13th, 2007 |
| Replies: 9 Views: 2,002 I don't understand what you mean about spaces. Are you saying that spaces in your original file are producing spaces in your encoded file?
The encoded file will naturally contain spaces, but these... |
Forum: Assembly Dec 12th, 2007 |
| Replies: 9 Views: 2,002 Originally, you had an integer, which we used as an index into a table of ASCII values. Basically, we said:
output_char = ascii_values[ input_index ];
Now you want to go the other way --that is,... |
Forum: Assembly Dec 11th, 2007 |
| Replies: 4 Views: 1,156 I'm not sure exactly what problems you are having, but the stuff following B4 has some errors.
First, if you only want to clear the top two bits of AL then
shl al, 2
shr al, 2
Or, even simpler:... |
Forum: Assembly Dec 10th, 2007 |
| Replies: 4 Views: 3,518 For others reading here:
If you know that your register is bit-formatted correctly for the coprocessor, use the mfc1 and mtc1 instructions. They are also in that link.
Glad to be of help. |
Forum: Assembly Dec 9th, 2007 |
| Replies: 4 Views: 3,518 You need the cvt.s.w and cvt.w.s instructions.
If you don't have a reference, here's a PDF for you: MIPS - Floating Point Instructions... |