Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write byte to Object Attribute Memory #14

Open
saku-koodari opened this issue Aug 28, 2016 · 0 comments
Open

Write byte to Object Attribute Memory #14

saku-koodari opened this issue Aug 28, 2016 · 0 comments
Labels

Comments

@saku-koodari
Copy link
Owner

saku-koodari commented Aug 28, 2016

Code snippet from Memory.cs WriteByte - method, around line 245-250:

                        // OAM
                        else if (bAddress == 0xE)
                        {
                            // if((addr&0xFF)<0xA0) GPU._oam[addr&0xFF] = val;
                            // GPU.updateoam(addr, val);
                            throw new NotImplementedException("TODO: GPU");
                        }
                        // Zero-page RAM, I/O
                        else if (bAddress == 0xF)
                        {
                            if (address > 0xFF7F)
                            {
                                _zram[address & 0x7F] = value;
                            }
                            else
                            {
                                switch (address & 0xF0)
                                {
                                    // I Wonder why this is here...
                                }

                                _logWriter.WarnFormat(warnMessage, "Zero-page RAM, I/O");
                            }
                        }

There is a longer snippet because there are empty switch case. Also Find out why it's there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant