Comments (3)
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.
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 :)
from apultra.
Thanks for the prompt response and help. It appears to be working fine now! :)
from apultra.
Related Issues (10)
- aPLib format changes for improving decompression on 8-bit micros. HOT 8
- Game boy decompressor HOT 1
- Question: how to use the depacker (fw) to depack at a given address? HOT 2
- gcc 6.3.0 gives warning: comparison of unsigned expression < 0 is always false HOT 2
- I adapted your code to an 8086 (segmented memory) depacker HOT 3
- strange bug in unaplib_68000.S HOT 4
- topic addition for better community reach
- Help with setting up compression level in apultra
- Is it possible to print the "Safe Distance" as in LZSA? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apultra.