
Now if you want to do the same thing with the index address S:24, you would program: MOV N10:0 S:24 MOV #N7:0 N10:1 If N10:0 is 0 then S:24 is 0 and #N7:0 is N7:0 and moved to N10:1 If N10:0 is 5 then S:24 is 5 and #N7:0 is N7:5 and moved to N10:1 etc. For example, if you want to move an integer value in file N7:0 pointed to by pointer N10:0 into a destination address N10:1, you would program something like this for indirect addressing: MOV N7: N10:1 if N10:0 is 0 then N7:0 is moved to N10:1 if N10:0 is 5 then N7:5 is moved to N10:1 etc. Back in the old days of SLC 5/01 and 5/02 and some of the older OS, there were no indirect addressing so instead we use the index register S:24.



Ron gave an excellent explanation on the index register S:24 but keep in mind that it can also be used as a powerful replacement tool for indirect addressing.
