Talk About Network



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 > Nasm labels
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 4567 of 4646
Post > Topic >>

Nasm labels

by syl <spamtrap@[EMAIL PROTECTED] > Mar 12, 2008 at 06:43 AM

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 :

[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.

--
Gallon sylvestre
Astek méchant / Assistant Cisco
Rathaxes Core Developper / LSE researcher
kernel developer for adeneo and OpenBSD fan
http://devsyl.blogspot.com/
| www.rathaxes.eu




 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 Wed May 14 13:09:42 CDT 2008.