hehe oops

soft-float
Egggggg 2023-07-12 06:50:07 -04:00
parent 63cf7ac0b0
commit 5afd081c2a
2 changed files with 4 additions and 4 deletions

View File

@ -243,7 +243,7 @@ impl<'a, PfHandler: HandlePageFault, const TIMER_QUOTIENT: usize>
)?;
}
BMC => {
let ParamBBD(dst, src, count) = param!(self, ParamBBD);
let ParamBBD(src, dst, count) = param!(self, ParamBBD);
self.memory.block_copy(
self.read_reg(src).as_u64(),
self.read_reg(dst).as_u64(),
@ -252,7 +252,7 @@ impl<'a, PfHandler: HandlePageFault, const TIMER_QUOTIENT: usize>
)?;
}
BRC => {
let ParamBBB(dst, src, count) = param!(self, ParamBBB);
let ParamBBB(src, dst, count) = param!(self, ParamBBB);
core::ptr::copy(
self.registers.get_unchecked(usize::from(src)),
self.registers.get_unchecked_mut(usize::from(dst)),

View File

@ -153,7 +153,7 @@
| Opcode | Name | Action |
|:------:|:----:|:--------------------------------:|
| 30 | BMC | `[#0] ← [#1], copy imm #2 bytes` |
| 30 | BMC | `[#1] ← [#0], copy imm #2 bytes` |
### Register copy
- Type BBB
@ -161,7 +161,7 @@
| Opcode | Name | Action |
|:------:|:----:|:--------------------------------:|
| 31 | BRC | `#0 ← #1, copy imm #2 registers` |
| 31 | BRC | `#1 ← #0, copy imm #2 registers` |
## Control flow