Comments (4)
Never mind I forgot to allocate memory for cart_ram. Fixed now it works :D
from peanut-gb.
@deltabeard I'll leave a message here once I make it public again, just trying to finish it up. Not sure if it meets your expectations because I haven't worked out how to optimally interact with wasm in JS (I just turned every interaction into a function for simplicity, but I guess you should be able to change variables etc directly).
It's working well though which is my goal, the pixel scaling with image-rendering: pixelated;
was fixed by this issue too.
from peanut-gb.
Nice to hear you got it working! Whilst your repo isn't available/public anymore (I was interested in the WASM implementation without emscripten...) be careful not to include non-redistributable ROMs (like Pokemon Red) in your repo. You can use open source ROMs instead to prove your implementation. 😃
from peanut-gb.
It turns out you actually can't use variables from wasm in js, only call functions and access memory directly. Took longer than expected because I end up implementing almost all features, behold: https://github.com/lesleyrs/web-gbc. I'm quite happy with the results, I actually just let the main function in wasm exit and just call the 2 required functions in JS loop.
BTW using your cgb
branch shows this warning message in polished crystal about emulator bugs: https://github.com/Rangi42/polishedcrystal/blob/3c769991deb0a0756d7e9accd3f6a496003c7689/data/text/common.asm#L3340
Code here: https://github.com/Rangi42/polishedcrystal/blob/master/home/vba.asm Is this a hard or easy fix to avoid the warning?
from peanut-gb.
Related Issues (20)
- Cant save on Legend of Zeld Links awakening HOT 3
- Problem saving games HOT 6
- cgb: allow mapping RGB555 palette to other common colour palettes (eg. RGB565) HOT 1
- RGFW Example? HOT 3
- gb: invalid function pointer called on write to 0xFF50
- gb: the IO_BOOT is unused and should be removed
- gb: Is That a Demo in Your Pocket? crashes during the demo
- core: list of unimplemented or incorrect emulation HOT 1
- gb: Dragon Warrior III halts forever error at 0x53BB
- gb: RTC does not work with MBC3 ROMs that do not use RAM HOT 1
- Make Peanut-GB strictly C89 HOT 1
- core: Use a function to change context variables
- core: frontend should provide pointer for pixel data
- core: allow LCD rendering to happen in separate thread HOT 1
- core: return to frontend after certain number of CPU cycles
- gb: Improve RTC accuracy with MBC3 HOT 3
- gb: allow disabling 16-colour palette at compile time and use 4-colour mode only HOT 1
- gb: add delay and memcpy detection HOT 3
- gb: add savestate support HOT 9
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 peanut-gb.