Skip to content

Commit

Permalink
Set rc0; don't provide.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Apr 23, 2022
1 parent 9e3d93a commit a1e5829
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mos-platform/atari8/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SECTIONS {
* reasonably safe to use these.
*/

PROVIDE(__rc0 = 0xcb);
__rc0 = 0xcb;
INCLUDE imag-regs.ld
ASSERT(__rc0 == 0xcb, "Inconsistent zero page map.")
ASSERT(__rc31 == 0xea, "Inconsistent zero page map.")
Expand Down
2 changes: 1 addition & 1 deletion mos-platform/c64/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SECTIONS {
}

/* Provide imaginary (zero page) registers in the BASIC area. */
PROVIDE(__rc0 = 0x0002);
__rc0 = 0x0002;
INCLUDE imag-regs.ld
ASSERT(__rc0 == 0x0002, "Inconsistent zero page map.")
ASSERT(__rc31 == 0x0021, "Inconsistent zero page map.")
Expand Down
6 changes: 3 additions & 3 deletions mos-platform/nes/nes-imag-regs.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Provide imaginary (zero page) registers. */
PROVIDE(__rc0 = 0x0000);
__rc0 = 0x00;
INCLUDE imag-regs.ld
ASSERT(__rc0 == 0x0000, "Inconsistent zero page map.")
ASSERT(__rc31 == 0x001f, "Inconsistent zero page map.")
ASSERT(__rc0 == 0x00, "Inconsistent zero page map.")
ASSERT(__rc31 == 0x1f, "Inconsistent zero page map.")
2 changes: 1 addition & 1 deletion mos-platform/sim/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SECTIONS {
}

/* Provide imaginary (zero page) registers. */
PROVIDE(__rc0 = 0x0000);
__rc0 = 0x00;
INCLUDE imag-regs.ld
ASSERT(__rc0 == 0x0000, "Inconsistent zero page map.")
ASSERT(__rc31 == 0x001f, "Inconsistent zero page map.")
Expand Down

0 comments on commit a1e5829

Please sign in to comment.