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 8785661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:25:23+00:00 2026-06-13T21:25:23+00:00

I’m working on a project for class, and the professor wants us to use

  • 0

I’m working on a project for class, and the professor wants us to use MASM instead of any other assembler. (I know thats is stupid, talk to him not me.) When I run ML.exe to compile my code, it crashes. Not the program I’m writing, but the assembler itself. What could possibly cause that? It’s running for a really long time before it goes, so maybe it’s an infinite loop of some sort.

Here’s my code:

.386
.MODEL FLAT

PUBLIC  compute_b_proc

points          EQU     [ebp + 16]
bs              EQU     [ebp + 12]
n               EQU     [ebp + 10]
m               EQU     [ebp + 8]

.CODE
compute_b_proc  PROC NEAR32

    push    ebpi
    mov     ebp, esp

    mov     ax, n
    cmp     ax, m
    je      base_case

    mov     ax, m
    inc     ax
    pushd   points
    push    n
    push    m
    call    compute_b_proc
    push    eax
    fld     DWORD PTR [esp + 8]
    pop     eax

    mov     ax, n
    dec     ax
    pushd   points
    push    n
    push    m
    call    compute_b_proc
    push    eax
    fld     DWORD PTR [esp + 4]
    pop     eax

    fsubp

    lea     eax, points
    mov     ebx, n
    shr     ebx, 3
    add     eax, ebx
    fild    REAL4 PTR [eax + 4]

    lea     eax, points
    mov     ebx, m
    shr     ebx, 3
    add     ebx, 4
    add     eax, ebx
    fild    REAL4 PTR [eax]

    fsubp
    fdivp
    pushd   0
    fstp    DWORD PTR [eax + 4]
    pop     eax

    mov     esp, ebp
    pop     ebp
    ret     12

    lea     eax, points
    mov     ebx, n
    shl     ebx, 3
    add     eax, ebx
    mov     eax, DWORD PTR[eax]

    mov     esp, ebp
    pop     ebp
    ret     12

compute_b_proc  ENDP
END

MASM compiles other files fine. The error message is just “ML.exe has stopped working,” nothing else. I should note that I’m using MASM version 6.11. It’s what the professor provided.

It seems to be the floating point instructions that make it crash. I reinstalled MASM, but it’s still crashing on everything floating point.

  • 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-13T21:25:25+00:00Added an answer on June 13, 2026 at 9:25 pm

    I figured it out… sort of. My floating point instructions were incorrect. fsubp should have been fsub, fmulp should be fmul, etc. Why that crashed the compiler, I have no idea, but changing fixed the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there's a lot of other questions out there that deal with this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.