Function subtract immediate instruction with dst: dst src: src and immediate: imm at i
the subtract-immediate (subtracti) instruction subracts imm from a value stored in src and stores the result in dst
Format:
subtract immediate instruction with dst: dst src: src and immediate: imm at i
Input:
number i -
number dst -
number src -
number imm -
Output:
boolean - None
Conditional properties that reference this function:
if the following are true:
- subtract immediate instruction with dst: dst src: src and immediate: imm at i
- the PC at time t = i
then value of cell dst at time (t + 1) = (value of cell src at time t) - imm
(link)if the following are true:
- subtract immediate instruction with dst: dst src: src and immediate: imm at i
- the PC at time t = i
- not (other = dst)
then value of cell other at time (t + 1) = value of cell other at time t
(link)if the following are true:
- subtract immediate instruction with dst: s src: d and immediate: imm at x
- the PC at time t = x
then the PC at time (t + 1) = x + 1
(link)
Comments
Please log in to add comments