How compile mbr with masm
CSEG segment
assume CS:CSEG
org 7c00h
start:
mov ax, 07c0h
mov ss, ax
mov sp, 03feh
@ECHO OFF
COLOR 9F
cd /d %~dp1
C:\masm32\bin\ml.exe /omf %~s1
C:\masm32\bin\LINK16.EXE /tiny %~sn1.obj,%~sn1.bin,nul,,,
del %~sn1.obj
pause
trying compile emu8086 mini os loader with masm
sory I do - terrible mistake word/byte
full secret to make org 0h in BIN extension LINK16.EXE /tiny %~sn1.obj,%~sn1.bin,nul,,,
http://www.masmforum.com/board/index.php?topic=12028.0 (http://www.masmforum.com/board/index.php?topic=12028.0)