Category:ARM Assembly: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) No edit summary |
Puppydrum64 (talk | contribs) m (→Conditional Opcodes: Formatting fix, code doesn't support italics delimiters) |
||
Line 32: | Line 32: | ||
ldr r0,[r1] ;load the 32-bit value stored at TestData into r0 |
ldr r0,[r1] ;load the 32-bit value stored at TestData into r0 |
||
adds r0,r0,#1 ;add 1 to r0 and store the result in r0, updating the flags accordingly. |
adds r0,r0,#1 ;add 1 to r0 and store the result in r0, updating the flags accordingly. |
||
subvs r0,r0,#1 ;subtract 1 from r0 and store the result in r0, |
subvs r0,r0,#1 ;subtract 1 from r0 and store the result in r0, only if the overflow flag was set.</lang> |
||