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

some compilation errors on platformio #2

Open
speriator opened this issue Jul 23, 2024 · 0 comments
Open

some compilation errors on platformio #2

speriator opened this issue Jul 23, 2024 · 0 comments

Comments

@speriator
Copy link

my platformio ask me some modifications like this in cpu.c (missing break;) to compile correctly.

switch (reg_code) {
    case 0x01:
        reg_ptr = &reg.y;
        break;
    case 0x02:
        reg_ptr = &reg.s;
        break;
    case 0x03:
        reg_ptr = &reg.u;
        break;
}

and a return of something at the end of process_next_instruction()

uint32_t process_next_instruction() {
// See Zaks p.250

...

return 0;

}

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

No branches or pull requests

1 participant