MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Review_Of_Vegas_Red_Online_Casino",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "17": {
                "pageid": 17,
                "ns": 0,
                "title": "Reading MD3 Joypad",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "=Details=\n\nAll the buttons can't be read at once. There is a multiplexer inside the control pad.\n\nReading the 3 buttons pad consist of 5 steps :\n\n*Set the direction of pin 6 to output and all others to input.\n*Set TH (pin6) to 1.\n*Read the first part of the buttons (UP,DOWN,LEFT,RIGHT,B,C)\n*Switch the outputs in the control pad by setting TH (pin6) to 0.\n*Read the second part of the buttons (A,START)\n\n{| class=\"regdef\"\n|'''TH State'''\n|'''Data'''\n|-\n|1\n|{{8BitRegister\n|0|0\n|TH|1\n|C|1\n|B|1\n|RIGHT|1\n|LEFT|1\n|DOWN|1\n|UP|1\n}}\n|-\n|0\n|{{8BitRegister\n|0|0\n|TH|1\n|START|1\n|A|1\n|0|1\n|0|1\n|DOWN|1\n|UP|1\n}}\n|}\n\n=Code=\n\n<syntaxhighlight lang=\"asm\">\n \tmoveq\t#0, d0\n\tmoveq\t#0, d1\n\n\tmove.b  #0x40, (0xA10009)\t| Set direction\n\tmove.b  #0x40, (0xA10003)\t| TH = 1\n\tnop\n\tnop\n\tmove.b  (a0), d0\t\t| d0.b = X | 1 | C | B | R | L | D | U |\n\tandi.b\t#0x3F, d0\t\t| d0.b = 0 | 0 | C | B | R | L | D | U |\n\n\tmove.b\t#0x0, (0xA10003)\t| TH = 0\n\tnop\n\tnop\n\tmove.b\t(0xA10003), d1\t\t| d1.b = X | 0 | S | A | 0 | 0 | D | U |\n\tandi.b\t#0x30, d1\t\t| d1.b = 0 | 0 | S | A | 0 | 0 | 0 | 0 |\n\tlsl.b\t#0x2, d1\t\t| d1.b = S | A | 0 | 0 | D | U | 0 | 0 |\n\tor.b\td1, d0\t\t\t| d0.b = S | A | C | B | R | L | D | U |\n</syntaxhighlight>\n\n[[Category:MegaDrive]]\n[[Category:Code]]"
                    }
                ]
            },
            "126": {
                "pageid": 126,
                "ns": 0,
                "title": "Reading MD6 Joypad",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "=Details=\n\nAs the 3 buttons pad, all the buttons can't be read at once. There is a multiplexer inside the control pad.\n\nReading the 6 buttons pad consist of 5 steps :\n\n*Set the direction of pin 6 to output and all others to input.\n*Set TH (pin6) to 1.\n*Read the first part of the buttons (UP,DOWN,LEFT,RIGHT,B,C)\n*Switch the outputs in the control pad by setting TH (pin6) to 0.\n*Read the second part of the buttons (A,START)\n*Switch the outputs in the control pad by setting TH (pin6) to 1.\n*Switch the outputs in the control pad by setting TH (pin6) to 0.\n*Switch the outputs in the control pad by setting TH (pin6) to 1.\n*Read the extra buttons (X,Y,Z,MODE)\n\n\n{| class=\"regdef\"\n|'''TH State'''\n|'''Data'''\n|-\n|1\n|{{8BitRegister\n|0|0\n|TH|1\n|C|1\n|B|1\n|RIGHT|1\n|LEFT|1\n|DOWN|1\n|UP|1\n}}\n|-\n|0\n|{{8BitRegister\n|0|0\n|TH|1\n|START|1\n|A|1\n|0|1\n|0|1\n|DOWN|1\n|UP|1\n}}\n|-\n|1\n|{{8BitRegister\n|0|0\n|TH|1\n|C|1\n|B|1\n|RIGHT|1\n|LEFT|1\n|DOWN|1\n|UP|1\n}}\n|-\n|0\n|{{8BitRegister\n|0|0\n|TH|1\n|START|1\n|A|1\n|0|1\n|0|1\n|0|1\n|0|1\n}}\n|-\n|1\n|{{8BitRegister\n|0|0\n|TH|1\n|C|1\n|B|1\n|X|1\n|Y|1\n|Z|1\n|MODE|1\n}}\n|-\n|0\n|{{8BitRegister\n|0|0\n|TH|1\n|START|1\n|A|1\n|1|1\n|1|1\n|1|1\n|1|1\n}}\n|}\n\n=Code=\n\n<syntaxhighlight lang=\"asm\">\n\tmoveq\t#0, d0\n\tmoveq\t#0, d1\n\n\tmove.b  #0x40, (0xA10009)\t| Set direction\n\tmove.b  #0x40, (0xA10003)\t| TH = 1\n\tnop\n\tnop\n\tmove.b  (0xA10003), d0\t\t| d0.b = X | 1 | C | B | R | L | D | U |\n\tandi.b\t#0x3F, d0\t\t| d0.b = 0 | 0 | C | B | R | L | D | U |\n\n\tmove.b\t#0x0, (0xA10003)\t| TH = 0\n\tnop\n\tnop\n\tmove.b\t(0xA10003), d1\t\t| d1.b = X | 0 | S | A | 0 | 0 | D | U |\n\tandi.b\t#0x30, d1\t\t| d1.b = 0 | 0 | S | A | 0 | 0 | 0 | 0 |\n\tlsl.b\t#0x2, d1\t\t| d1.b = S | A | 0 | 0 | D | U | 0 | 0 |\n\tor.b\td1, d0\t\t\t| d0.b = S | A | C | B | R | L | D | U |\n\n\tmove.b  #0x40, (0xA10003)\t| TH = 1\n\tnop\n\tnop\n\tmove.b\t#0x0, (0xA10003)\t| TH = 0\n\tnop\n\tnop\n\tmove.b\t#0x40, (0xA10003)\t| TH = 1\n\tnop\n\tnop\n\tmove.b\t(0xA10003), d1\t\t| d1.b = X | X | X | X | M | X | Y | Z\n\tmove.b  #0x0, (0xA10003)\t| TH = 0\n\n\tandi.w\t#0xF, d1\t\t| d1.b = 0 | 0 | 0 | 0 | M | X | Y | Z\n\tlsl.w\t#0x8, d1\t\t| d1.w = 0 | 0 | 0 | 0 | M | X | Y | Z | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |\n\tor.w\td1, d0\t\t\t| d0.w = 0 | 0 | 0 | 0 | M | X | Y | Z | S | A | C | B | R | L | D | U |\n\n</syntaxhighlight>\n\n[[Category:MegaDrive]]\n[[Category:Code]]"
                    }
                ]
            }
        }
    }
}