Skip to content

Commit

Permalink
minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarlanger committed Jan 12, 2025
1 parent 30fb039 commit c5b5cef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/lib/formats/h17disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ static std::pair<std::uint64_t, std::size_t> find_block(util::random_read &io, u
}
while (header.block_name != block_id);


// update position to point to data portion of the block
return std::make_pair(pos + 8, header.length);
}
Expand Down Expand Up @@ -237,12 +236,11 @@ bool heath_h17d_format::load(util::random_read &io, uint32_t form_factor, const
return true;
}

void heath_h17d_format::fm_reverse_byte_w(std::__1::vector<uint32_t> &buffer, uint8_t val) const
void heath_h17d_format::fm_reverse_byte_w(std::vector<uint32_t> &buffer, uint8_t val) const
{
static unsigned char lookup[16] = { 0x0, 0x8, 0x4, 0xc, 0x2, 0xa, 0x6, 0xe, 0x1, 0x9, 0x5, 0xd, 0x3, 0xb, 0x7, 0xf };

fm_w(buffer, 8, lookup[val & 0x0f] << 4 | lookup[val >> 4], BITCELL_SIZE);
}


const heath_h17d_format FLOPPY_H17D_FORMAT;
1 change: 0 additions & 1 deletion src/lib/formats/h17disk.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class heath_h17d_format : public floppy_image_format_t
protected:

void fm_reverse_byte_w(std::vector<uint32_t> &buffer, uint8_t val) const;

};

extern const heath_h17d_format FLOPPY_H17D_FORMAT;
Expand Down

0 comments on commit c5b5cef

Please sign in to comment.