Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Writing a master boot record

Can anyone give me some clues (or links on the world wide web) on how to place code into the master boot record using assembly language?
0
gerrymun
Asked:
gerrymun
1 Solution
 
rbrCommented:
use int 13h

for reading

ah=02
dl=Number of disc (c: = 80h)
dh=0
ch=cylinder (1)
cl=sektor(0)
al=number of sectors (1)
ES:BX pointer where to store data

for writing

ah=03
dl=Number of disc (c: = 80h)
dh=number of head (0)
ch=cylinder (1)
cl=sektor(0)
al=number of sectors (1)
ES:BX pointer where the data is

0
 
vikiingCommented:
Hey, Gerrymum !!; ┬┐what kinda virus you're trying to do?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now