fn write_command_byte(&self, offset: usize, byte: u8) {
        let page = self.read_pram(offset >> 2);
        let page: [u8; 4] = match offset & 0x3 {
            0x0 => [byte, page[1], page[2], page[3]], // LL
            0x1 => [page[0], byte, page[2], page[3]], // LU
            0x2 => [page[0], page[1], byte, page[3]], // HL
            0x3 => [page[0], page[1], page[2], byte], // HU
            _ => unreachable!(),
        };

        self.write_pram(offset >> 2, &page)
    }
/// Writes a single byte from `CSE_PRAM`.
/// Ported verbatim from reference code.
Writes a single byte from `CSE_PRAM`.
Ported verbatim from reference code.
Writes a single byte from ` CSE_PRAM ` . Ported verbatim from reference code .
fn write_command_byte(&self, offset: usize, byte: u8) {
        let page = self.read_pram(offset >> 2);
        let page: [u8; 4] = match offset & 0x3 {
            0x0 => [byte, page[1], page[2], page[3]], // LL
            0x1 => [page[0], byte, page[2], page[3]], // LU
            0x2 => [page[0], page[1], byte, page[3]], // HL
            0x3 => [page[0], page[1], page[2], byte], // HU
            _ => unreachable!(),
        };
        self.write_pram(offset >> 2, &page)
    }
fn write_command_byte ( & self , offset : usize , byte : u8 ) { let page = self . read_pram ( offset >> 2 ) ; let page : [ u8 ; 4 ] = match offset & 0x3 { 0x0 => [ byte , page [ 1 ] , page [ 2 ] , page [ 3 ] ] , // LL 0x1 => [ page [ 0 ] , byte , page [ 2 ] , page [ 3 ] ] , // LU 0x2 => [ page [ 0 ] , page [ 1 ] , byte , page [ 3 ] ] , // HL 0x3 => [ page [ 0 ] , page [ 1 ] , page [ 2 ] , byte ] , // HU _ => unreachable ! ( ) , } ; self . write_pram ( offset >> 2 , & page ) }
Writes a single byte from `CSE_PRAM`.
Writes a single byte from ` CSE_PRAM ` .
&self
offset
usize
byte
u8