News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

masm make mbr

Started by bomz, January 31, 2013, 08:41:24 AM

Previous topic - Next topic

bomz

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,,,