software/spu32-system/bios/bios.c
// function to handle block write requests
function to handle block write requests
function to handle block write requests
void _bios_write_block(struct request_readwrite_block_t* request) {
    request->result = RESULT_ERR;
    switch(request->device) {
        case DEVICE_SD: {
            if(request->len != 512) {
                return;
            }
            request->result = bios_sd_write_block(request->block, request->buf);
        }
    }
}
void _bios_write_block ( struct request_readwrite_block_t * request ) { request -> result = RESULT_ERR ; switch ( request -> device ) { case DEVICE_SD : { if ( request -> len != 512 ) { return ; } request -> result = bios_sd_write_block ( request -> block , request -> buf ) ; } } }
function to handle block write requests
function to handle block write requests
// assume error for now