• Please review our updated Terms and Rules here

Jumping with 777, etc

Marty

Veteran Member
Joined
Jul 26, 2009
Messages
3,141
Location
Boulder , Colorado USA
Hi All;
I cannot find the Reference in the Reference Card to making sure that when I use a '000777 or '000776, '000775 that I am Counting my Lines of Code correctly..
I am trying to slow down the Rate of the Chase in the Chase Program..
So here is the Original program --
1000 5000
1002 5200
1004 6100
1006 0005
1010 0775
So If I add two lines of Code, I subtract two from the '775 to get 773, Correct..
1000 005000
1002 005200
1004 006100
1006 010001
1010 010100
1012 000005
1014 000773
So If I add two lines of Code, I subtract two from the '773 to get 771, Correct..
1000 005000
1002 005200
1004 006100
1006 010001
1010 010100
1012 060001
1014 160001
1016 000005
1020 000771
So If I add two lines of Code, I subtract two from the '771 to get 767, Correct..
1000 005000
1002 005200
1004 006100
1006 010001
1010 010100
1012 060001
1014 160001
1016 010102
1020 010201
1022 000005
1024 000767
Etc.,
I hope to go thru the six General Purpose Registers like this, in the same way..
This is my primitive way of learning to code with the DEC 11 Assembly language, and it possibly may check out whether more of the PDP 11/45 is working correctly..
I know that this code may lack Elegance, But for me its a start into this world Of Assembly programming, I have done a little with my Altair 8080..
THANK YOU Marty
 
Last edited:
That does indeed look correct. I'm left wondering how it is going to break out of the loop, and why it keeps doing a RESET instruction.

OK, I understand now, it's the rotating light pattern. It should work.
 
Last edited:
Hi All;
EdT, Thank You for Your Response.. I have been entering the code and trying it out.. Adding two lines and trying it Again..
I just wanted to make Sure it was Back Jumping to the Correct Address.. And my Understanding of what was happening is correct..
THANK YOU Marty
 
Hi All;
I am making a slight change to the code.. I am after copying from one register to the next, and after doing the add and the subtract.. I copy the final register I am working with back to Register 0.. That way I make sure what I started with is what I am ending up with as well.. And that truely does check each Register in every bit for consistency..
THANK YOU Marty
 
Hi All;
As far as I can tell, I have done this to all Six of the General Purpose Registers, (R0-R6) and the program runs.. I can't tell if it slowed it down by very much, But, that it works Is really the Main Thing.. Now to something else..
THANK YOU Marty
 
Back
Top