• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oh, God I NEED Help!!!!!!!!

 
DANIEL GRESHAM
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok this program was working fine this morning!!! I have no idea why its not working now. All I did was save this to disk, and print it. Some one anyone please lay it on me why is this not working I'm exhuasted and I've been staring at this for the last 3 hours to no avail, maybe a fresh set of experienced eyes can help. The program is getting to the branch command, but I dont think its getting past that the program loops twice after the initial branch command and then just stops all together.
any help would be much appriciated,
thanks in advance,
Danny
 
DANIEL GRESHAM
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If anyone tries to compile this program and wants input for the text area, try this
1010
1011
2010
3311
2112
1112
4015
0000
0000
0000
0000
0000
0000
0000
0000
4300
thanks again
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried downloading your program. Can you be more specific about the problem?
 
DANIEL GRESHAM
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Program loops the actual command lines more than once, it actually starts over at the begining in stead of outputing a value then branching to the commandHalt() method. Maybe its this program in secific. What the above line coding is "supposed" to do is accept two input values from the user, multiply them together via the accumulator, output the result, then branch to the commandHalt() method. For some reason the program isnt getting past the commandBranch() method. So, if anyone can see why its not moving please point it out to me.
thanks
Danny
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got this when I ran your program with a few numbers. Is this wrong?

1010 0
1011 1
2010 2
3311 3
2112 4
1112 5
10 0
10 1
20 2
33 3
21 4
11 5
10 0
11 1
10 2
11 3
12 4
12 5
The value 5 is stored at Memory location 10
The value 5 is stored at Memory location 11
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic