> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-manifesto/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/the-insurgents-manifesto/vm-extension/new-call-targets/memory-write-short.md).

# Memory Write Short

### Signature

```c
void tim_memoryWriteShort(int address, short value); //id:0x1007
```

### Description

Writes a short value to an address.

### Example

#### Equip Vaan With Ribbon

```c
regI0 = 0; //vaan identifier
regI1 = tim_memoryExecute(0x00320A40, regI0, 0, 0, 0); //getBattleKeepBasicInfo(...)
regI2 = 4481; //ribbon
tim_memoryWriteShort(regI1 + 0x58, regI2); //0x58: accessory offset
```
