diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-27 16:48:22 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-27 16:48:22 -0400 |
commit | 3743cb6aa79bbfa25911e10560b674480e251d2d (patch) | |
tree | 808cefef66ea4045e05d6116f21789e5d5df57e5 /README.md | |
parent | 96e3a612e29f632f89eac9519fd56ed96c2f0243 (diff) |
cpy -> mov
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,7 +63,7 @@ Arithmetic operations can write to all registers except `v0`-`v7`, `x0` and `pc` #### Example ``` /* Set x1 to 5 */ -cpy x1, 5 +mov x1, 5 /* Increment x1 */ inc x1 /* x1 now equals 6 */ @@ -91,8 +91,8 @@ Control flow instructions are used to control which instructions the CPU execute /* Subtract x2 from x1 */ sub x1, x2 beq x1, 0, zero -cpy x1, 2 +mov x1, 2 zero: -cpy x1, 3 +mov x1, 3 /* Iff x1 - x2 = 0, x1 equals 3 */ /* Iff x1 - x1 != 0, x1 equals 2 */ |