Type: Posts; User: kahlinor
Search took 0.01 seconds.
April 16th, 2007, 08:13 PM
This utility gives you a visual representation of what's going on with the SAR (and several other CPU) instructions. Check it out if you like. The small manual also has examples on several useful...
April 3rd, 2007, 12:44 AM
olly can assemble.
I'm not sure what you are trying to do is legal.
March 27th, 2007, 12:43 AM
This is NASM? What's with all the comment characters? Or are semicolons used as statement separators here?
I think your problem may be with addressing:
mov dx,[student] ; Load dx with word...
March 22nd, 2007, 12:12 AM
I'm assuming you want to convert them to ascii. Binary is fairly simple.
Just load the number into a register shift left, the carry flag will tell you if the next digit is a zero or a one, store...
March 13th, 2007, 10:57 PM
I'm not familiar with the assembler you are using, but it seems to be a compiling/linking problem. Have you seen other examples of code using multiple modules written in your assembler syntax?
February 5th, 2007, 10:21 PM
You'll have to do the work yourself.
Here is some logic to help you out:
-x & (x+1)
= rightmost zero bit
= 0 if no zero bits in set
January 26th, 2007, 01:37 AM
One of the attractions of HLA is that it allows for flexible data representation: types, records and classes. MASM also has built in support for structures.
January 25th, 2007, 01:41 AM
Assembly knowledge does help in writing better high level code and a good project to take on if you have already learned a high level language pretty well. HLA might be a good entry point for you as...
January 25th, 2007, 01:36 AM
I tried several assemblers but settled on HLA myself. As for TASM, It's a fine assembler, but I wouldn't recommend it since it is discontinued by the developer. I see no future in it.
January 4th, 2007, 10:30 PM
The only reason for this is due to the lack of commercial support for assembler. Assembly tends to be less portable (though an assembler such as gas is able to transcend across different processors)...
December 14th, 2006, 12:08 AM
I don't know exactly what kind of problem you are getting, so this solution may not apply to you: Offset zero = 1st byte, you are modifying the 3rd byte.
December 3rd, 2006, 02:54 AM
Anyway, just to give you an idea, here is some HLA code that displays an array of strings. As an exercise, translate it to your assembly syntax and it will give you something to work on. Remember,...
December 3rd, 2006, 02:34 AM
My assumption is that you have an array of string pointers. On a 32 bit machine, each reference is 4 bytes long.
On a single dimension array, you traverse it by adding the element size to...
December 3rd, 2006, 01:58 AM
It's the long form of "inc"
But incl 0x8 doesn't look right to me.
December 3rd, 2006, 01:36 AM
An important thing to remember is what kind of parameters are being passed on the stack. Are you passing by value or by reference?
Also, you have fallen into a trap of referencing off of ebp. ...
October 28th, 2006, 10:25 PM
You have several choices. Some noteworthy ones:
Of these, AS and NASM should already be on your 'nix
Get FASM at http://flatassembler.net/
September 7th, 2006, 02:06 AM
This looks like an older version of MASM.
Let's examine your main search routine:
mov si,offset string+2 ;string's add->si
mov cl,string+1 ;string'length->cl
August 30th, 2006, 12:50 AM
Sounds like a simple compare operation.
What assembly language/OS are you allowed to use if not Windows assembly?
You'll also have to show your attempt to program this, it is your assignment...
August 23rd, 2006, 02:39 AM
Those books teach you how to program and think in assembly. If you want to learn how to hack, you're in the wrong place.
August 23rd, 2006, 02:32 AM
Dev-Cpp (and MinGW) use binutils - the 'nix lineup: AS, AR, LD, etc.
A COFF object won't link. There might be a conversion utility somewhere, I don't know.
Meanwhile, try writing the code in AS...
November 11th, 2005, 11:21 PM
My favorite hexer:
look for "tiny hexer" in freeware category.
October 21st, 2005, 11:54 PM
I'm not too informed on DOS or TASM (I assume this is TASM code), but it seems to me that the problem is here.
DOS strings are terminated with a dollar sign and this line above is your input...
September 30th, 2005, 07:59 PM
You can't return a 64 bit value into a 32 bit register. MOVQ (and MOVD) are designed to be used with MMX registers.
If you must return a 64 bit value and can't use MMX, then you can go with 2...
September 27th, 2005, 11:44 PM
(Assuming x/86 processor)
What normally happens is that a stack frame is built around the ebx register, then uses addressing [ebx +parm. offset] to get the parameters of the function and [ebx -...
September 27th, 2005, 11:18 PM
That really depends on your linked list is setup in memory.
Theoretically, if it's a "linked list" you should have at least a "next" field in the structure that points to the next record in the...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.