Industry Online Support
Technical Forum
9/11/2012 11:46 PM | |
Joined: 10/7/2005 Last visit: 11/6/2024 Posts: 3026 Rating: (1056)
|
Hello Yann_GPC SLW1 is simply a multiplication by 2. In your case it is applied to value that is created by adding DL45 value with a constant of 150 (SLW1is NOT appliedfor the16#E400DB startvalue, so I think you confused yourself a bit with that). Thereafter, the result is added to the absolute start address of DB0 (E400) toget the start address of the DB they are looking for. Thereason why the multiplication with 2 is done via SLW1, is that the DB start addresses in your943 CPU occupy 2 words each (e.g. DB0 start address is in E400 & E401, DB1 is in E402 & E403 and so forth). If DL45 for example has a value of 10, your logic calculatesthe absolute start address of DB160 and doesso quite correctly by first multiplying 160 with 2 before adding the resultto the absolute start address of DB0 (E400). I hope this helps |
Cheers |
|
9/12/2012 9:03 AM | |
Posts: 10 Rating: (0) |
Hellofritz, Thanks a lot for your support, it's very helpful. And with your explanation, it's clearer in my mind now. Best regards! |
2/13/2014 1:37 PM | |
Posts: 340 Rating: (6) |
new question is splittet i still dont understand slw |
Follow us on