Recent content by DanjoJojo

  1. DanjoJojo

    Getting Started with LMC Simulator for 3-Digit 10's Complement Calculation

    Summary:: So I'm trying to get more advanced with the lmc simulator, https://www.101computing.net/LMC/ But it's kind of hard to understand and keep track when it gets long. Provide an LMC program that will provide a value in three digits ten's complement. The program will take two inputs, a...
  2. DanjoJojo

    Is My Clock Cycle Calculation Accurate for a 2.5 GHz CPU?

    So far I have come to the understanding that a nanosecond is one billionth of a second or 10-9 seconds. So I found this formula to calculate the clock cycle in nanoseconds, for a CPU running at 2.5 GHz. 10^-9 x 2.5 x 10^9 = 2.5 nanoseconds Am I missing any important steps with my calculation...
  3. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    I finally figured out how to make it loop without halting. I started with the first INP making it loop then where you put BRA end I changed it to a BRA loop, after each output for one, two and zero I used a BRA loop. This code worked and ran just as I was trying to get. Thank you everyone for...
  4. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    I will try this too, I'm sorry to keep asking for help but this program is confusing due to the branching. I've been doing a lot of research about branching and unfortunately none resemble a program like this. But I thank everyone for their input, I'm still working towards a resolution!
  5. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    So when I put the code in using https://101computing.net/LMC/ it just keeps giving me a 0, when I input a smaller number for input 1 and a big number for input 2. I can never get the other outputs 2 or 1. I really don't understand why nothing is working except for getting a 0 when input 1 is...
  6. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    One thing I've noticed while doing the code in the lmc simulator is that there's no continuous loop. Or did I miss something? I tried to put loop with the input part but I'm not getting it to work. How do I have the program run continuously?
  7. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    Yes, the comments help me see where I was stuck. I had trouble with showing whether or not num1=num2 or rather I didn't know which BR to use. Thank you too for providing the comments, I was able to follow along very easily.
  8. DanjoJojo

    Comp Sci Writing a Little Man Computer program to compare 2 integers

    I've attempted and I can retrieve a 0 when the first input is greater than the second using BRP. I can't seem to get the output of 1 if the first input is equal to the second input. I also don't get a 2 output with the first input being less than the second. I also have no idea how to loop a...
Back
Top