| 184 | return 0; |
| 185 | } |
| 186 | static void flash_write_command(uint8_t byte) { |
| 187 | switch (flash.command[0xF]) { |
| 188 | case 0x32: // Quad Input Page Program |
| 189 | mem.flash.block[flash.commandAddress & (SIZE_FLASH - 1)] &= byte; |
| 190 | flash.commandAddress = (flash.commandAddress & ~0xFF) | ((flash.commandAddress + 1) & 0xFF); |
| 191 | break; |
| 192 | } |
| 193 | } |
| 194 | static void flash_command_byte_transferred(void) { |
| 195 | if (!--flash.commandLength) { |
| 196 | flash.commandStatus[0] &= ~(3 << 1); |