Mail Archives: djgpp/1997/01/17/21:01:08
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 -