11# API Documentation
22
33The following is generated from the [ swagger.json] ( swagger.json ) file via https://swagger-markdown-ui.netlify.app/
4-
54# mGBA-http
65An HTTP interface for mGBA scripting.
76
@@ -973,7 +972,7 @@ Write a 16-bit value from the given bus address.
973972| Name | Located in | Description | Required | Schema |
974973| ---- | ---------- | ----------- | -------- | ---- |
975974| address | query | Address in hex, e.g. 0x0300 | Yes | string |
976- | value | query | 16-bit decimal value to write (0-65535). | Yes | integer |
975+ | value | query | 16-bit unsigned integer value to write (0-65535). | Yes | integer |
977976
978977##### Responses
979978
@@ -997,7 +996,7 @@ Write a 32-bit value from the given bus address.
997996| Name | Located in | Description | Required | Schema |
998997| ---- | ---------- | ----------- | -------- | ---- |
999998| address | query | Address in hex, e.g. 0x0300 | Yes | string |
1000- | value | query | 32-bit decimal value to write. | Yes | integer |
999+ | value | query | 32-bit unsigned integer value to write. | Yes | integer |
10011000
10021001##### Responses
10031002
@@ -1304,19 +1303,19 @@ Get the size of this memory domain in bytes.
13041303#### POST
13051304##### Summary:
13061305
1307- Write a 16-bit value to the given offset.
1306+ Write a 16-bit value from the given offset.
13081307
13091308##### Description:
13101309
1311- Write a 16-bit value to the given offset in the specified memory domain.
1310+ Write a 16-bit value from the given offset in the specified memory domain.
13121311
13131312##### Parameters
13141313
13151314| Name | Located in | Description | Required | Schema |
13161315| ---- | ---------- | ----------- | -------- | ---- |
13171316| memoryDomain | query | Memory domain name (e.g., 'wram', 'cart0', 'bios', etc). | Yes | string |
13181317| address | query | Address as hex string with 0x prefix (e.g., '0x0300'). | Yes | string |
1319- | value | query | 16-bit decimal value to write (0-65535). Not hex. | Yes | integer |
1318+ | value | query | 16-bit unsigned integer value to write (0-65535). Not hex. | Yes | integer |
13201319
13211320##### Responses
13221321
@@ -1329,19 +1328,19 @@ Write a 16-bit value to the given offset in the specified memory domain.
13291328#### POST
13301329##### Summary:
13311330
1332- Write a 32-bit value to the given offset.
1331+ Write a 32-bit value from the given offset.
13331332
13341333##### Description:
13351334
1336- Write a 32-bit value to the given offset in the specified memory domain.
1335+ Write a 32-bit value from the given offset in the specified memory domain.
13371336
13381337##### Parameters
13391338
13401339| Name | Located in | Description | Required | Schema |
13411340| ---- | ---------- | ----------- | -------- | ---- |
13421341| memoryDomain | query | Memory domain name (e.g., 'wram', 'cart0', 'bios', etc). | Yes | string |
13431342| address | query | Address as hex string with 0x prefix (e.g., '0x0300'). | Yes | string |
1344- | value | query | 32-bit decimal value to write. Not hex. | Yes | integer |
1343+ | value | query | 32-bit unsigned integer value to write (0-4294967295) . Not hex. | Yes | integer |
13451344
13461345##### Responses
13471346
@@ -1354,19 +1353,19 @@ Write a 32-bit value to the given offset in the specified memory domain.
13541353#### POST
13551354##### Summary:
13561355
1357- Write an 8-bit value to the given offset.
1356+ Write an 8-bit value from the given offset.
13581357
13591358##### Description:
13601359
1361- Write an 8-bit value to the given offset in the specified memory domain.
1360+ Write an 8-bit value from the given offset in the specified memory domain.
13621361
13631362##### Parameters
13641363
13651364| Name | Located in | Description | Required | Schema |
13661365| ---- | ---------- | ----------- | -------- | ---- |
13671366| memoryDomain | query | Memory domain name (e.g., 'wram', 'cart0', 'bios', etc). | Yes | string |
13681367| address | query | Address as hex string with 0x prefix (e.g., '0x0300'). | Yes | string |
1369- | value | query | 8-bit decimal value to write (0-255). Not hex. | Yes | integer |
1368+ | value | query | 8-bit integer value to write (0-255). Not hex. | Yes | integer |
13701369
13711370##### Responses
13721371
0 commit comments