Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mos-platform/nes/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ asm(".section .init.50,\"ax\",@progbits\n"
" txs\n"
" jsr __early_init\n");

void __early_init(void) {
__attribute__((weak)) void __early_init(void) {
// Disable NMI generation.
PPU.control = 0;
// Disable rendering.
Expand All @@ -36,7 +36,7 @@ void __early_init(void) {
asm(".section .init.250,\"ax\",@progbits\n"
" jsr __late_init\n");

void __late_init(void) {
__attribute__((weak)) void __late_init(void) {
// Wait for cycle 57165 at the earliest. This is late enough for the PPU to be
// fully functional and for the main program to begin.
ppu_wait_vblank();
Expand Down
2 changes: 1 addition & 1 deletion mos-platform/supervision/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ asm(".section .init.50,\"ax\",@progbits\n"
" txs\n"
" jsr __early_init\n");

void __early_init(void) {
__attribute__((weak)) void __early_init(void) {
// Disable NMI, LCD, configure default bank.
sv_sys_control_set(SV_SYS_BANK(0) |
SV_SYS_NMI_DISABLE |
Expand Down