The MASM Forum

General => The Campus => Topic started by: bomz on January 31, 2013, 08:41:24 AM

Title: masm make mbr
Post by: bomz on January 31, 2013, 08:41:24 AM
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,,,
Title: Re: masm make mbr
Post by: dedndave on January 31, 2013, 09:07:11 PM
http://www.masmforum.com/board/index.php?topic=12028.0 (http://www.masmforum.com/board/index.php?topic=12028.0)