Comments (5)
Some of the code does use a bitfield, but other parts assign the values directly, and using a bitfield won't match. We already have a vBgCnt struct in types.h for this.
from pokeruby.
Exactly, which is why they should be defined as unions. It's good to know these are already defined in types.h, so I don't need to redefine them. Additionally, do_boulder_dust
also uses the DMA3 registers as structs of 3 u16s:
REG_DMA3.SAD = (u32) &var_c;
REG_DMA3.DAD = r1;
REG_DMA3.CNT = 0x85000400;
from pokeruby.
Isnt that just a DmaFill32 ? Please use the macros defined in gba/macros.h
from pokeruby.
Turns out it is, thanks!
from pokeruby.
Oh, I see what you mean about making it a union. I believe that would match at the cost of being slightly more verbose because of the extra member required. If there's a significant amount of code that accesses it as a bitfield, then the change is probably worth it. If the vast majority of code accesses it as a raw u16, then it might be good to leave it as it is.
from pokeruby.
Related Issues (20)
- Fix sound key split tables
- It would be nice to add some tutorials into the Wiki HOT 2
- How do I disassemble Ruby? HOT 5
- Add missing voice macros
- Make gbagfx give some better error messages HOT 4
- ...
- Better ELF support. HOT 1
- Miscellaneous issues. HOT 3
- libgcc.a missing HOT 5
- Enforce required arguments for asm macros. HOT 2
- Proposed TODO: Tool sources should be their own repository(ies) HOT 1
- Identify all sprite/palette tags. HOT 1
- devkitARM install instructions are out of date HOT 2
- Update Discord invite in readme HOT 1
- Merge battle struct and ewram names
- static, extern, etc. handling
- Some build artifacts are not in build/
- Create constant for menu cursor color
- how do you use this to replace the langfiles in a japanese copy with the english langfiles
- Any interest in a Docker build container. For CI or single dev builds.
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 pokeruby.