#30055 - tepples - Sun Nov 28, 2004 12:35 am
Wild speculation about the DS controller:
It could be possible that the GBA register 0x4000130 - REG_KEY is no longer read-only. One way Nintendo could have designed it, similar to how the reading the DMG controller works, would be to make some of the bits writable such that writing to the bits would either unmask or bankswitch which buttons can be read.
Example of hypothetical unmaskable register:
Write 0x03FF to REG_KEY, and reading REG_KEY returns only the GBA buttons.
Write 0x0FFF to REG_KEY, and reading REG_KEY returns the X and Y buttons as well.
Example of hypothetical bankswitchable register:
Write 0x0000 to REG_KEY, and reading REG_KEY returns the GBA buttons.
Write 0x4000 to REG_KEY, and reading REG_KEY returns the X and Y buttons.
Write 0x8000 to REG_KEY, and reading REG_KEY returns the X coordinate of the touch screen.
Write 0xC000 to REG_KEY, and reading REG_KEY returns the Y coordinate of the touch screen.
Has anybody else thought to try this?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
It could be possible that the GBA register 0x4000130 - REG_KEY is no longer read-only. One way Nintendo could have designed it, similar to how the reading the DMG controller works, would be to make some of the bits writable such that writing to the bits would either unmask or bankswitch which buttons can be read.
Example of hypothetical unmaskable register:
Write 0x03FF to REG_KEY, and reading REG_KEY returns only the GBA buttons.
Write 0x0FFF to REG_KEY, and reading REG_KEY returns the X and Y buttons as well.
Example of hypothetical bankswitchable register:
Write 0x0000 to REG_KEY, and reading REG_KEY returns the GBA buttons.
Write 0x4000 to REG_KEY, and reading REG_KEY returns the X and Y buttons.
Write 0x8000 to REG_KEY, and reading REG_KEY returns the X coordinate of the touch screen.
Write 0xC000 to REG_KEY, and reading REG_KEY returns the Y coordinate of the touch screen.
Has anybody else thought to try this?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.