Recent content by 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...- DanjoJojo
- Thread
- Calculation Simulator
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
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...- DanjoJojo
- Thread
- Clock Cycle
- Replies: 3
- Forum: Computing and Technology
-
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...- DanjoJojo
- Post #19
- Forum: Engineering and Comp Sci Homework Help
-
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!- DanjoJojo
- Post #16
- Forum: Engineering and Comp Sci Homework Help
-
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...- DanjoJojo
- Post #13
- Forum: Engineering and Comp Sci Homework Help
-
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?- DanjoJojo
- Post #10
- Forum: Engineering and Comp Sci Homework Help
-
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.- DanjoJojo
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
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...- DanjoJojo
- Thread
- Compare Computer Computer science Integers Program Writing
- Replies: 18
- Forum: Engineering and Comp Sci Homework Help