chore: update min ver. to v0.11.0-dev.2934+1b432072b

This commit is contained in:
2023-05-02 00:08:51 -05:00
parent a5e636d9c5
commit c677957725
13 changed files with 29 additions and 27 deletions

View File

@@ -44,7 +44,7 @@ pub fn handleCommand(self: *Self, buf: []u8, byte: u8) void {
0xB0 => self.set_bank = true,
0x80 => self.prep_erase = true,
0x10 => {
std.mem.set(u8, buf, 0xFF);
@memset(buf, 0xFF);
self.prep_erase = false;
},
0xA0 => self.prep_write = true,
@@ -61,7 +61,7 @@ pub fn shouldEraseSector(self: *const Self, addr: usize, byte: u8) bool {
pub fn erase(self: *Self, buf: []u8, sector: usize) void {
const start = self.address() + (sector & 0xF000);
std.mem.set(u8, buf[start..][0..0x1000], 0xFF);
@memset(buf[start..][0..0x1000], 0xFF);
self.prep_erase = false;
self.state = .Ready;
}