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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:22:15+00:00 2026-06-15T01:22:15+00:00

How might i translate the Java Code below in PseudoCode for assembly language using

  • 0

How might i translate the Java Code below in PseudoCode for assembly language using the Motorola 68000:

if(x > y && y < 100) {
    x++;
    y--;
    } // end if
else if(x < y) {
    x--;
    y++;
    } // end else if
else {
    x=0;
    y=0;
    } // end else

I think that i might be on the right track just not sure:

IF:
        if(x <= y) goto end if
        if(y <= 100) goto end if
            x++;
            y--;
            goto IF
ELSE IF:
        if(x >= y) goto end else if
            x--;
            y++;
            goto ELSE IF
            x = 0;
            y = 0;
            goto DONE
DONE:
  • 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-15T01:22:17+00:00Added an answer on June 15, 2026 at 1:22 am

    There is no standard pseudo code format. It’s very informal. The point is to show the logical structure of the code clearly without getting bogged down in syntax.

    If you’ve been told to pseudo code for assembly, I’d assume that you’d want to break down the java code into, roughly, what it would look like in 68k assembly. This seems to be what you’ve started here, but you’ve made a few mistakes.

    First, you mean y >= 100.

    Your first two ifs should goto ELSE IF, not END IF.

    There is no reason to goto IF. You should only be there once. The conditions are not supposed to be checked more than once, according to the java code. Your goto IF should probably be a goto DONE, because it is only executed if the fist condition was true, and this means no other condition will be evaluated.

    You need a label for the else condition. This is what you should be going to if x >= y.

    You don’t want to backtrack to ELSE IF as you do with goto ELSE IF. You probably meant to goto DONE.

    Your final goto DONE is redundant. If you had left it out, it would have gone to DONE anyway, seeing as that is the next instruction.

    This is roughly what it should look like (Note that the IF label is never referenced. It is just there for looks.):

    IF:
      if x <= y 
        goto ELSEIF
      if y >= 100 
        goto ELSEIF
      x++
      y--
      goto DONE
    ELSEIF:
      if x >= y 
        goto ELSE
      x--
      y++
      goto DONE
    ELSE:
      x = 0
      y = 0
    DONE:
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to open the Byte code (Java Binaries) generated by Java Compiler using
might be a silly question nonetheless: I'm playing around with the following code: $a='a';
I tried to switch from Java 5 to Java 6 using the update-java-alternatives command
recently I'm writing some functions that I take from Haskell and translate into Java.
I'm using Translate behavior. Here's the scenario: I save a translation on model 'Content'
So I'm in the need to translate a C library to pure java, so
I am using Codeigniter! What will be the best way to translate month names.
I have following code and would like to translate it to linq. Is it
I'm trying to translate the following Python code into C++: import struct import binascii
Might be my question sounds more naive. But I wanted to know if 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.