Giter Site home page Giter Site logo

Comments (3)

emmanuel-marty avatar emmanuel-marty commented on May 10, 2024 1

From a first glance, the most likely issue is that you aren't handling offsets >= 64K. You kept the 'mov dh,cl' on line 97 which will only copy 8 high bits, which means the offsets will still be limited to < 64K. You should probably do something like mov edx, ecx / shl ecx,8 . Same with the minmatch 3/4 offset comparisons below, the cmp dh,07DH should be a cmp edx,07D00H, cmp dh,05H should be cmp edx,0500H and cmp dx,0080H a cmp edx,80H (or equivalent shorter code forms).

I will look further and do some tests, but that would be my first guess!

Note that you can limit the max offsets by using -w 65535 or somesuch on the apultra command line, just for quickly testing if the offset sizes are the issue. I wouldn't recommend actually using that in production, as it would grealy limit compression of your large exes, but just for testing.

from apultra.

emmanuel-marty avatar emmanuel-marty commented on May 10, 2024 1

Ok, the code below seems to work with large files (I took your code and put in the changes in my previous message, plus a xor edx,edx instead of dh,dh in the code handling 7O+1M commands). If you optimize for size there are probably some opportunities to reduce this down. Let me know if that works :)

aplib_x86_small_fixed.zip

from apultra.

odzhan avatar odzhan commented on May 10, 2024

Thanks for the prompt response and help. It appears to be working fine now! :)

from apultra.

Related Issues (10)

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.