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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:43:59+00:00 2026-06-13T17:43:59+00:00

I have a task – calculate 6 results of function (Y = (20 *

  • 0

I have a task – calculate 6 results of function (Y = (20 * x) /(5 * x2 – 8,5)) the x – start from 1 and each calculation must increas by 4 (1, 5, 9 ..).

I write some code but i dont understand how to made loop and put data to array. All operation must be on asm – loop and put to array, 1 iteration – 1 element in array

There is my code:

int main()
{
float REZ[6];
int x = 1;
int A =5;
int B=20;
float C = 8.5;
int D =2000;
int increment = 4;
float part;
float val;

_asm{
finit   
fild x
fimul x
fimul A
fsub C
fstp part
fild D
fimul x
fdiv part
fstp val
}

}

  • 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-13T17:44:00+00:00Added an answer on June 13, 2026 at 5:44 pm

    My assembly times are long gone, but I’ll try. A loop in assembly is done by defining a label and jumping to this label. Depending on the loop, it is a conditional jump (after some comparison):

    Pseudo assembly:

    label1:
        ...
        cmp x, 6
        jlt label1
    

    Look at X86 Assembly/Control Flow for details.

    Or unconditional jump:

    label1:
        ...
        jmp label1
    

    Another way to learn about assembly is looking at compiler output. See for example:

    int x, y;
    for (x = 0; x < 6; ++x)
        y = (20 * x) / (5 * x2 – 8,5);
    

    Tell gcc to stop at assembly output:

    gcc -S loop.c

    and look for the resulting loop.s

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

Sidebar

Related Questions

I have the task to write a user control to display some results by
I have a task: save from frontend static block. The code which i tried
i have task which takes a parameter and has three modes of results Example
I have some task regarding do operations on database using ADODB in Vb.NET. Can
I have the task to integrate some commercial sharing stuff into a website. The
I have a task that runs periodically 10 second. I do some picturebox refreshing
I have task to write program allowing users to draw stars, which can differ
I am from DW/BI background using SAS for many years now I have task
I would like to run a background task on some interval from a web
I have task to make simple app from three Views: in first: UITableView (it

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.