Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:42:32+00:00 2026-06-18T10:42:32+00:00

I want to write 16 bit 8086 assembly code in visual studio 2010 but

  • 0

I want to write 16 bit 8086 assembly code in visual studio 2010
but gives me error:
code:

.MODEL small
.STACK 100h
.data
message BYTE "Hello, world!","$"
.code
mov ah,9
mov dx,OFFSET message ; addr of buffer
int 21h
END

output gives me this error:

fm.obj : fatal error LNK1190: invalid fixup found, type 0x0001

I using masm32v11. What should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:42:34+00:00Added an answer on June 18, 2026 at 10:42 am

    Where does the Assembler know where the starting address is?
    Using Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994 (16bit linker)
    and added start and end start the code Assembles and links just fine. MASM32 includes a 16bit linker in the bin directory. You must pass different command line parameters to ML to Assemble 16bit code correctly though.

    .MODEL small
    .STACK 100h
    .data
    message BYTE "Hello, world!","$"
    .code
    start:
    mov ah,9
    mov dx,OFFSET message ; addr of buffer
    int 21h
    END start
    

    So to recap – your code needs a starting address and an end,
    You can use the current ML that comes with MASM32 to Assemble 16 bit and 32 bit code. To link 16 bit code you must use a 16 bit linker, to link 32 bit code, you must use a 32 bit linker.

    From one of my 16 bit DOS apps:

    ML.EXE /DMASM /DDOS /Zm /c /nologo /I"f:\masm32\Include" "dosdisplay.asm"
    link16.exe /NOLOGO "dosdisplay.obj"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a small bit of data from my app to the
I want to write code that compiles easily for either 32 or 64 bit
I want to write one single bit to a binary file. using (FileStream fileStream
I want write a little code analyzer which parses nested structures and translates into
I want to learn 32-bit assembly. I got some programming background, mostly high-level languages
I want to write a String to a Unicode file. My code in Java
I want to write some macro specific to Excel 64 bit., the below link
A bit of a strange one, I want to write a MySQL query that
I want to write a byte to register with specific memory address (0x1228A432) But,
I want to write in 2 chars and a bit vector (uint64_t) to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.