Git Product home page Git Product logo

Comments (4)

Jaxartes avatar Jaxartes commented on August 11, 2024

The first ROM commit to have the problem seems to be b6a0f0c.
Other observations (running on that commit):
In test 7, the file contents are "FILE1" when they should be "HELLO, WORLD!".
In test 8, the file contents of "FILE4" are "FILE1".

from x16-rom.

stefan-b-jakobsson avatar stefan-b-jakobsson commented on August 11, 2024

I think I now know what's happening when doing a DOS file copy to some extent.

AFAICT, the actual file copying is done by fat32_read and fat32_write in dos/fat32/fat32.s.

It seems fat32_read uses a temporary storage buffer in RAM bank 1 where it puts the content of the file it's reading.

Furthermore it looks like fat32_write tries to output the content of the same buffer to disk, but that it fetches data from the same memory address in RAM bank 0 instead.

Even so, I have not yet a concrete bug fix. Just an idea of what might be going wrong.

from x16-rom.

stefan-b-jakobsson avatar stefan-b-jakobsson commented on August 11, 2024

functions.diff.txt

from x16-rom.

stefan-b-jakobsson avatar stefan-b-jakobsson commented on August 11, 2024

I managed to trick the X16 Kernal to do a correct file copy by the changes found in the above diff file "functions.diff.txt"
Those changes basically set the variable bank_save to zero before starting the copy procedure. But this is not the right way to really fix the problem.
@mist64, where do you think we should start looking for a solution?

from x16-rom.

Related Issues (20)

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.