Mail Archives: djgpp/2002/01/28/11:18:29
On Mon, 28 Jan 2002, Joel Saunders wrote:
> main(void)
> {
> __asm__("
> movw My_Name, %si
> movw Screen_PTR, %di
> movw $7, %ecx
> movsb
> ");
> return 0;
> }
> -[_]--------------------------- Message Window --------------------
> Creating: nptest.exe
> Error: nptest.o: In function `main':
> nptest.cpp(6) Error: undefined reference to `My_Name'
> Error: nptest.cpp(.text+0xd): undefined reference to `Screen_PTR'
> There were some errors
>
> What did I do wrong?
In addition to what Hans-Bernhard wrote, I'd like to mention section
18.12 in the DJGPP FAQ list: it includes pointers to relevant parts of
the documentation that you are advised to read before using inline
assembly.
- Raw text -