Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Nasm labels
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 4567 of 4729
Post > Topic >>

Re: Nasm labels

by "Maarten Kronenburg" <spamtrap@[EMAIL PROTECTED] > Mar 12, 2008 at 10:50 PM

"syl"  wrote in message
> hello guys.
>
> I'm using nasm and I've got a strange problems with labels.
> I do this code and compile it with nasm -f code.S :
>

Replace loadsb with lodsb.

> [BITS 16]
> global  print
> global  foreverloop
>
> print:
>         push    ax
>         push    bx
>         jmp     .toto
> .toto:
>         loadsb
>         cmp     al, 0
>         jz      .end
>         mov     ah, 0x0e
>         mov     bh, 0x00
>         mov     bl, 0xa7
>         int     0x10
>         jmp     .toto
> .end:
>         pop     bx
>         pop     ax
>         ret
>
> But during the assembling I've got this errors :
>
> UTIL.S:22: error: symbol `.toto' undefined
> UTIL.S:31: error: phase error detected at end of assembly.
>
> But for me the label .toto is defined. Do you know why I've
> got this errors?
>
> Thanks in advance.
>
> --
 




 9 Posts in Topic:
Nasm labels
syl <spamtrap@[EMAIL   2008-03-12 06:43:24 
Re: Nasm labels
Frank Kotler <spamtra  2008-03-12 19:26:14 
Re: Nasm labels
"Maarten Kronenburg&  2008-03-12 19:39:15 
Re: Nasm labels
Alex Buell <spamtrap@  2008-03-12 20:07:04 
Re: [Clax86list] Nasm labels
Charles Crayne <spamt  2008-03-12 15:10:57 
Re: Nasm labels
"Maarten Kronenburg&  2008-03-12 22:50:06 
Re: Nasm labels
syl <spamtrap@[EMAIL   2008-03-12 16:19:33 
Re: Nasm labels
Frank Kotler <spamtra  2008-03-13 02:39:25 
Re: [Clax86list] Nasm labels
Charles Crayne <spamt  2008-03-13 14:00:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:05:00 CDT 2008.