code segment in MARIE assembly language

Hi,
I have a homework to convert a code segment of "for loop" (as shown)into Marie assembly language. Please advise.
-------------
Sum := 0;
for X := 1 to 10 do
Sum := Sum + X;

Comments

  • : Hi,
    : I have a homework to convert a code segment of "for loop" (as shown)into Marie assembly language. Please advise.
    : -------------
    : Sum := 0;
    : for X := 1 to 10 do
    : Sum := Sum + X;
    :
    :
    [blue]I may be off topic here, but why your homework require this MARIE assembler? I doubt, anyone is able to help you, since no one knows what MARIE assembler is. You should have taken a course of normal (industrial) assembler.[/blue]
  • : : Hi,
    : : I have a homework to convert a code segment of "for loop" (as shown)into Marie assembly language. Please advise.
    : : -------------
    : : Sum := 0;
    : : for X := 1 to 10 do
    : : Sum := Sum + X;
    : :
    : :
    : [blue]I may be off topic here, but why your homework require this MARIE assembler? I doubt, anyone is able to help you, since no one knows what MARIE assembler is. You should have taken a course of normal (industrial) assembler.[/blue]
    :

    I'm studying a Computer Architecture course and marie assembler is used
    for this course.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion