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

Proper Invalid Bankswitch Emulation #164

Closed
wants to merge 30 commits into from
Closed

Proper Invalid Bankswitch Emulation #164

wants to merge 30 commits into from

Conversation

ParzivalWolfram
Copy link

@ParzivalWolfram ParzivalWolfram commented Apr 12, 2018

I've added proper invalid-bank switching behavior. Should make some homebrew and bootlegs more stable.
(Don't mind my stupid commit names)

Copy link
Owner

@Stewmath Stewmath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Ideally I'd ask you to squash your commits since you didn't actually change very much, but that's not really important - could you at least fix the indentation to use 4 spaces, though?

@@ -145,9 +145,6 @@ void powerHandler(u32 value, void* user_data) {
}
fifoSendValue32(FIFO_SYSTEM, battery);
break;
case PM_DSI_HACK:
__dsimode = true;
break;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe libnds has evolved, but can I ask why you had to remove this?

@@ -31,7 +31,6 @@ DEBUG := -g
CFLAGS := -Wall -Wno-psabi -DNO_VIZ \
-march=armv5te -mtune=arm946e-s -fomit-frame-pointer\
-ffast-math -O3 $(ARCH) $(DEBUG) \
-DVERSION_STRING=\"`git describe --always --abbrev=4`\"\
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this didn't work for you? I'd really prefer to keep this though...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I see you added it back later...

@Stewmath
Copy link
Owner

Also, so I can test this later, can you give an example of a homebrew that this fixes?

@ParzivalWolfram
Copy link
Author

ParzivalWolfram commented Apr 12, 2018 via email

@Stewmath
Copy link
Owner

To be fair, it's been a while since I compiled this branch. Maybe some of those changes were needed. (I more recently worked on the v0.5-hotfix branch.)

@ParzivalWolfram
Copy link
Author

ParzivalWolfram commented Apr 12, 2018 via email

@ParzivalWolfram
Copy link
Author

\GameYob/platform/ds/arm7/source/main.c: In function 'powerHandler': GameYob/platform/ds/arm7/source/main.c:148:14: error: 'PM_DSI_HACK' undeclared (first use in this function) case PM_DSI_HACK: ^~~~~~~~~~~
Yeah, it's busted. xD

@ParzivalWolfram
Copy link
Author

Fixed the tab issue.

@ParzivalWolfram
Copy link
Author

@Drenn1 I fixed the tab issue (i think)

Needs fixed as around half the time this is triggered, the emulator hangs, but it's a good start.
dude i'm so excited over the cpu_instrs test
@ParzivalWolfram
Copy link
Author

yeah no, just reject this

i'm just gonna make it a parallel project

you'll be seeing more of these probably
just something i didn't catch when i reworked I/O earlier, lol
@Stewmath
Copy link
Owner

Well, feel free to make another PR when this is ready... no reason to fork the codebase unless this has a large speed impact.

@Stewmath Stewmath closed this Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants