Skip to content

Commit

Permalink
add ds_store_b8
Browse files Browse the repository at this point in the history
  • Loading branch information
Qazalin committed Aug 17, 2024
1 parent 2a1f153 commit dbb93f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,18 @@ impl<'a> Thread<'a> {
.write(single_addr() + 4 * i, self.vec_reg[data0 + i]);
})
}
30 => {
let addr = single_addr();
if addr + 1 >= self.lds.data.len() {
self.lds.data.resize(self.lds.data.len() + addr + 2, 0);
}
self.lds.data[addr..addr + 1]
.iter_mut()
.enumerate()
.for_each(|(i, x)| {
*x = (self.vec_reg[data0] as u8).to_le_bytes()[i];
});
}
31 => {
let addr = single_addr();
if addr + 2 >= self.lds.data.len() {
Expand Down

0 comments on commit dbb93f7

Please sign in to comment.