nasm 's boot problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bgcq

nasm 's boot problem

Post by bgcq »

i use a boot that other's,the first line is :[org 0],and
i usr nasmw boot.asm,then err msg:is except start line
what's means?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:nasm 's boot problem

Post by Pype.Clicker »

are you sure your boot.asm file is designed for nasm ?
and are you sure you didn't made HTTP mess up your file ?
never saw things like this : in an assembler, but it looks much like the encoding of a Unicode character in HTML (é � etc ...)
bgcq

Re:nasm 's boot problem

Post by bgcq »

sorroy,&65306 is no in file,
the [ORG 0]
jmp 07C0h:start ; Goto segment 07C0
is error i said,and the nasmw 1.asm will be:
E:\MyOs>nasmw 1.asm
1.asm:7: error: label or instruction expected at start of line.the file is said it can be nasmw,can you help me,i
post the file attach.



[attachment deleted by admin]
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:nasm 's boot problem

Post by Pype.Clicker »

the only thing i see is that the [ORG] directive *must* start the line. I.e. having white space before it on the same line will fail and say "unrecognized directive [[ORG]" ...

Maybe you should check no update is available for nasm ...
bgcq

Re:nasm 's boot problem

Post by bgcq »

i rename [org 0] to org,it is ok
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:nasm 's boot problem

Post by Pype.Clicker »

yep. That [directive] syntax looks not fully supported by nasm ...
Post Reply