Comments (1)
Nice!
Yeah, LR35902 is fun. :) It's been a while since I coded it, so I don't remember exactly but I think I reversed the order - original compressor saves match distance and length and my modification match length and distance. This was necessary to fit everything within registers and not to use any memory additional push/pops. I probably also shortened offsets to 16 bits vs 32 in original - we don't have that much memory in Game Boy anyway. :)
Actually I also started with 6502 code base. This was to test porting code by using tips from Nintendo docs - nes2gbc.pdf to be exact. I realized quite soon that output is really sloppy and I could achieve better results writing it from scratch. I'm not a 6502 coder anyway. Then I took a peek at Z80 version which uses those fancy instructions not available for LR35902 and ended up with first version. I had couple of different solutions but it was where I started to count cycles and register usage instead of H/RAM. So the final result is a compromise between different approaches and my skills.
from lz4gb.
Related Issues (1)
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 lz4gb.