Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Commit 2bd5eff

Browse files
committed
sound engine reworked
1 parent 9f58ed6 commit 2bd5eff

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

memmap.ld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MEMORY
2+
{
3+
FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 4096k
4+
RAM(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
5+
SCRATCH_X(rwx) : ORIGIN = 0x20040000, LENGTH = 4k
6+
SCRATCH_Y(rwx) : ORIGIN = 0x20041000, LENGTH = 4k
7+
}

src/cpu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4301,8 +4301,9 @@ void writew86(uint32_t addr32, uint16_t v) {
43014301

43024302
// https://docs.huihoo.com/gnu_linux/own_os/appendix-bios_memory_2.htm
43034303
uint8_t read86(uint32_t addr32) {
4304-
// Не удаляй плиз коммент
4305-
//if (addr32 == 0xFC000) { return 0x21; };
4304+
#if !PICO_ON_DEVICE
4305+
if (addr32 == 0xFC000) { return 0x21; };
4306+
#endif
43064307
// if (addr32 == 0x408) return 0x78;
43074308
// if (addr32 == 0x409) return 0x03;
43084309
// if (addr32 == 0x411) return 0b11000000;

0 commit comments

Comments
 (0)