delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/17/21:01:08

From: Sugree Phatanapherom <ioisgp AT nontri DOT ku DOT ac DOT th>
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: <Pine.GSO.3.95.970117233047.15969A-100000@nontri.ku.ac.th>
NNTP-Posting-Host: ioisgp AT nontri DOT ku DOT ac DOT th
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019