Forum: Assembly Feb 1st, 2009 |
| Replies: 2 Views: 458 your compiler supports several different processor types, depending on which hardware manufactures SDK you install. You will have to port that assembly code to each of those processors that you want... |
Forum: Assembly Jan 17th, 2009 |
| Replies: 1 Views: 507 Ask your teacher for homework ?? Or you could read through all the threads on this board and try to do the assignments yourself. |
Forum: Assembly Nov 17th, 2008 |
| Replies: 3 Views: 1,364 There are several threads (http://www.google.com/search?hl=en&q=how+to+write+an+assembler&aq=f&oq=)about writing your own assembler |
Forum: Assembly Oct 27th, 2008 |
| Replies: 1 Views: 793 Its better to not write assembly language at all -- just let the compiler do the work for you. There is little, if anything, to be gained by hard-coding assembly language into a c++ program. And it... |
Forum: Assembly Aug 22nd, 2008 |
| Replies: 1 Views: 857 my guess is that filename.asm is not in the directory where you are trying to assemble it. That, or you named the file something else. |
Forum: Assembly Aug 8th, 2008 |
| Replies: 1 Views: 737 write a TSR assuming the os is MS-DOS 6.X or earlier. |
Forum: Assembly Jun 29th, 2008 |
| Replies: 1 Views: 2,086 That isn't true of any major computer language that I know of. Procedures in every language can accept parameters. In assembly language you can store the parameters in registers, push them one the... |
Forum: Assembly Jun 15th, 2008 |
| Replies: 1 Views: 859 Now that you have posted your homework assignments, what are you asking from us ? |
Forum: Assembly Jun 1st, 2008 |
| Replies: 1 Views: 849 depends on the hardware that linex is running on -- if its on an 80x86 or Pentium box then there will be no difference at all. Linex (or unix) is supported on a lot of other platforms and the... |
Forum: Assembly Apr 21st, 2008 |
| Replies: 4 Views: 954 Return values are normally passed back in registers -- its standard practice to put a 16-bit int (short in C) in AX, 32-bit in EAX or DX::AX and 64-bit on EDX::EAX. But you can do it anyway you... |
Forum: Assembly Feb 23rd, 2008 |
| Replies: 8 Views: 1,659 I realize that rewriting a dll can be a difficult and time consuming task, especially if you paid someone to write the original and now find yourself redoing what he did. That often happens... |
Forum: Assembly Feb 21st, 2008 |
| Replies: 8 Views: 1,659 My advice: rewrite it in C or C++. If the data is sent across serial port then use MSCom1 dll for the communications -- I thik its probably compatible with Win98. Use sokets if the data is sent... |
Forum: Assembly Feb 18th, 2008 |
| Replies: 2 Views: 683 Here (http://www.amazon.com/s/ref=nb_ss_b/103-3497822-8565464?url=search-alias%3Dstripbooks&field-keywords=assembly+language&x=13&y=16) are some good books from amazon you might want to get. |
Forum: Assembly Feb 18th, 2008 |
| Replies: 9 Views: 1,376 You completly sidestepped the question about what platform you are using and what you intend to do with it, such as interface with java. With your level of programming knowledge surely you can... |
Forum: Assembly Feb 17th, 2008 |
| Replies: 9 Views: 1,376 This is not a C proglem then, but an assembly language problem. But you should know that you can not use those interrupts with any modern 32-bit C or C++ compiler or create a DLL that contains... |
Forum: Assembly Feb 17th, 2008 |
| Replies: 2 Views: 683 This is really an assembly language problem so I moved the thread from C to assmelby boards. |
Forum: Assembly Feb 17th, 2008 |
| Replies: 9 Views: 1,376 win32 api functions: FindFirstFile() and FindNextFile() will do that for you -- you don't have to resort to interrups. Here (http://www.daniweb.com/code/snippet370.html) is a c++ way of doing that.... |
Forum: Assembly Jan 29th, 2008 |
| Replies: 6 Views: 12,705 That is C code you posted, not assembly. If its a C program you are writing then you are in the wrong board. Let us know which is it and one of the mods will move this thread for you into the right... |
Forum: Assembly Jan 6th, 2008 |
| Replies: 5 Views: 2,057 what operating system ? what version assembly language? what assembler?
Essentually you have to open two files -- input file for input and result (output) file for output. In a loop, read a... |
Forum: Assembly Dec 2nd, 2007 |
| Replies: 14 Views: 9,586 >>is the assembly code outputted MIPS
No. Its Intell 80X88, you will have to translate it to MIPS.
You can get free eVC++ 4.0 which is for embedded WinCE and PocketPC devices which can produe... |
Forum: Assembly Dec 2nd, 2007 |
| Replies: 14 Views: 9,586 Project --> Properties (the last item in the menu) --> Configuration Properties --> C/C++ -> Output Files --> then on the right side of the screen you will see Assembly Output |
Forum: Assembly Dec 2nd, 2007 |
| Replies: 14 Views: 9,586 VC++ 2005 Express can produce the assembly code for you but it won't produce assembly code for the standard c and c++ library functions that your program calls. Unless your teacher lets you link... |
Forum: Assembly Nov 26th, 2007 |
| Replies: 5 Views: 1,253 why don't you make it easy on yourself and give each one a name like you did Emp1 == use Emp2, Emp3, etc. Then I think you can create a jump table
table dw Emp1, Emp2, Emp3 |
Forum: Assembly Nov 17th, 2007 |
| Replies: 9 Views: 1,674 >>I'm curious why you said to move esi to edx?
esi is a 32-bit register and can only be copied to another 32-bit register.
>>Also could you explain a little about dl?
Its just an 8-bit... |
Forum: Assembly Nov 17th, 2007 |
| Replies: 9 Views: 1,674 line 29: byte is a reserved word that means one byte and you are attepting to add a 16-bit register value to it. You will probably have to use a different general register to do it
mov edx,esi... |
Forum: Assembly Nov 11th, 2007 |
| Replies: 3 Views: 2,044 Protected mode does not have access to real mode addresses. You have to switch back to real mode to access it. Yes its a pain in the butt. How to do it? I don't know, all I know is what I've read... |
Forum: Assembly Oct 28th, 2007 |
| Replies: 1 Views: 1,103 that doesn't look like any assembly I know of. But basically divide the number by 10 and the digit you want is in the remainder part. |
Forum: Assembly Oct 26th, 2007 |
| Replies: 4 Views: 1,521 did you try google (http://www.google.com/search?hl=en&q=mouse+interrupts) ? |
Forum: Assembly Oct 22nd, 2007 |
| Replies: 14 Views: 3,662 >>would i do
Not quite. you have to use valid assembly language syntax. |
Forum: Assembly Oct 19th, 2007 |
| Replies: 14 Views: 3,662 you need a good explaination of those interrupt functions. Here (http://www.htl-steyr.ac.at/~morg/pcinfo/hardware/interrupts/inte1at0.htm) is just one of them you can find. Function 1, which you... |
Forum: Assembly Oct 19th, 2007 |
| Replies: 3 Views: 4,262 Nope -- in assembly language you have to roll your own. You can use C library functions, but that would defeat the purpose of you writing assembly language. |
Forum: Assembly Oct 19th, 2007 |
| Replies: 1 Views: 768 Depends on what operating system you want to use. If MS-DOS version 6.X or earlier then you need to make it a TSR. There is quite a bit about that on the net, just google for it. MS-Windows... |
Forum: Assembly Oct 19th, 2007 |
| Replies: 14 Views: 3,662 >>But i use NASM as my compiler
Its not a compiler, but an assembler. :) |
Forum: Assembly Oct 18th, 2007 |
| Replies: 14 Views: 3,662 You mean you actually boot linux from a CD :-O You must be awfully patient to wait all that time for your computer to boot up. |
Forum: Assembly Oct 18th, 2007 |
| Replies: 14 Views: 3,662 Also what assembler because some assemblers have macros that do all (or most) of the grunt work of calling system functions. |
Forum: Assembly Oct 17th, 2007 |
| Replies: 1 Views: 1,070 depends on the operating system. Here is some info (http://msdn2.microsoft.com/en-us/library/ms724381.aspx) for MS-Windows. You'll have to do some more reasearch to find other information.
And... |
Forum: Assembly Oct 15th, 2007 |
| Replies: 8 Views: 1,581 that won't work for huge hard drive partitions -- those larger than about 2 gig. |
Forum: Assembly Oct 12th, 2007 |
| Replies: 1 Views: 3,250 you don't need turbo debuger to view the disassembled program. Every version of MS-Windows since MS-DOS Version 1.0 comes with a free disassembler named debug.exe (located in c:\windows directory). ... |
Forum: Assembly Oct 3rd, 2007 |
| Replies: 5 Views: 1,874 for (i=0, i < 3001, i++)
{
A[i] = i
}
for (i = 1, i < 30,i++)
{
int j;
for (j = i+i; j < 3001; j++)
{ |
Forum: Assembly Oct 2nd, 2007 |
| Replies: 10 Views: 3,157 >>What kind of information is being added to the output and how can I get rid of it?
It adds all the code that's in procs.o and main.o. To my knowledge it doesn't add any other code like compilers... |