Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

C674x SUB instruction has not worked

$
0
0

In the following assembly code, B0 is not decremented with SUB instruction. SUB instruction seems not to work.

03288265            LDW.D1T1      *+A10[4],A6
032882E7 ||         LDW.D2T2      *+B10[4],B6
0003E1A2 ||         SUB.S2        B0,1,B0
2FFFF693     [ B0]  B.S2          LOOP (PC-76 = 0x1181e494)
06B1BE19 ||         ADDSP.S1X     A13,B12,A13
06B1B21B ||         ADDSP.L2X     B13,A12,B13
03A8C265 ||         LDW.D1T1      *+A10[6],A7
03A8C2E6 ||         LDW.D2T2      *+B10[6],B7

Please see the attached file for a series of assembly code: (Please visit the site to view this file)

In the following assembly code, B0 is decremented with SUB instruction. SUB instruction works with .L2 unit.

03288265            LDW.D1T1      *+A10[4],A6
032882E7 ||         LDW.D2T2      *+B10[4],B6
0003E05A ||         SUB.L2        B0,1,B0
2FFFF693     [ B0]  B.S2          LOOP (PC-76 = 0x1181e494)
06B1BE19 ||         ADDSP.S1X     A13,B12,A13
06B1B21B ||         ADDSP.L2X     B13,A12,B13
03A8C265 ||         LDW.D1T1      *+A10[6],A7
03A8C2E6 ||         LDW.D2T2      *+B10[6],B7

Please see the attached file for a series of assembly code: (Please visit the site to view this file)

Why does the SUB instruction not work in the first assembly code?

Best regards,

Daisuke

 


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>