From: Sugree Phatanapherom Newsgroups: comp.lang.asm.x86,alt.lang.asm,comp.os.msdos.djgpp Subject: NASM Date: Fri, 17 Jan 1997 23:41:22 -0700 Organization: Kasetsart University Lines: 26 Message-ID: NNTP-Posting-Host: ioisgp AT nontri DOT ku DOT ac DOT th Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi everybody, I'd like to make a new boot code. NASM is good 32 bits compiler I guessed. However boot code should be in fixed size, 512 bytes. My code is just about 200 bytes, so I used ''$'' to duplicate blank value. That is problem. NASM gave me error message, ''stack overflow''. Stack overflow!! I'm so wonder, what problem are? After changeed ''times'' operand from (512-$) to constant value such as ''512'' or ''128'', it works fine. ''('' and '')'' are problem, I guess. How to correct this problem? is it bug? [bits 16] < ... boot code ... > blank: times (512-$) db 0 ---------- Sugree Phatanapherom ioisgp AT std DOT cpc DOT ku DOT ac DOT th http://203.155.125.134/~sugreep/