---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 13 Edition"
java_version: 13
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.istore"
heading: "istore"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se13/html/jvms-6.html#jvms-6.5.istore
id: "6.5.istore"
url: https://jvm.obfuscated.software/jvms/se13/6.5.istore.html
raw: https://jvm.obfuscated.software/jvms/se13/6.5.istore.md
---

# istore

## Operation

Store `int` into local variable

## Format

```
istore
index
```

## Forms

*istore* = 54 (0x36)

## Operand Stack

..., *value* →

...

## Description

The *index* is an unsigned byte that must be an index into the local variable array of the current frame ([§2.6](2.6.md)). The *value* on the top of the operand stack must be of type `int`. It is popped from the operand stack, and the value of the local variable at *index* is set to *value*.

## Notes

The *istore* opcode can be used in conjunction with the *wide* instruction ([§*wide*](6.5.wide.md)) to access a local variable using a two-byte unsigned index.
