Giter Club home page Giter Club logo

fat12's Introduction

Hello! ¯\(ツ)

一曲肝肠断,天涯何处觅知音?

一曲肝肠断,轻羽此去莫留连,更有南国花正好,莫向白苹洲上独叹秋水寒。

二曲肝肠断,深院梨花相谢早,五马罗堂久徘徊,油壁桐车载君去,去时盈盈红泪满红绡。

三曲肝肠断,落花为雨侬为愁,秋千架上看笑靥,而今都随海棠瘦,唯自弄笛别院忆兰舟。

github statsMost Used Languages

fat12's People

Contributors

qihaiyan avatar schilive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fat12's Issues

Cannot copy files bigger than one cluster

When I tried copying a file bigger than one cluster into a floppy image with the following conditions, it did not work. The FAT was not updated. Looking at the image using a hex editor, I saw a weird part was updated as if it were the FAT.

  1. The number of bytes per sector is 512.
  2. The number of sectors per cluster is 4.
  3. The number of FATs is 2.
  4. The number of reserved sectors is 1.

Reading the source code, I found two functions calculating the offset of an entry in the FAT: get_fat_entry() and set_fat_entry(), on dos.c. For some reason, the number of sectors per cluster was used. I found this odd, since the FAT entry offset is (usually) calculated by finding the FAT offset and then adding entry_number * 1.5.

By removing the count of sectors per cluster, the problem was fixed. If you'd like, I can just make a pull request with this change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.