Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sound driver: fixing labels and other things
Working towards [sonicretro#32](sonicretro#32); thankfully, it's close enough to Sonic 1's code that I can take names from the S1 disassembly. Some comments have been changed accordingly. I also fixed a few typos and inconsistent tab character uses, as well as converted all uses of "branch" to "jump" to better reflect Z80 assembly nomenclature.
- Loading branch information
055363d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a quick look at the commit, and a few things came to mind while looking
1: imo, each label should have at least 1 empty line between it and code above (just like how the 68k code does)
2: You reference a label named .bgmfmloadloop, which is named differently as the label itself
3: you named some standard library functions, like zDACStopTrack to be local labels instead. This may be a bad idea for people who want to modify the driver.
4: did you ensure bit perfect builds succeed?
Otherwise this looks good as far as I can tell
edit: I thought this was a pr on the main repo lol, ignore in that case
055363d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NatsumiFox I do intend for this whole thing to eventually be a pull request; I just wanted to take care of the smaller of the two ASM files first as a proof of concept.
Thanks for the feedback!