2018-03-20 15:10:58 +00:00
|
|
|
---
|
2018-03-21 12:51:05 +00:00
|
|
|
eip: 141
|
|
|
|
title: Designated invalid EVM instruction
|
2018-09-18 23:26:06 +00:00
|
|
|
author: Alex Beregszaszi (@axic)
|
2018-03-21 15:55:18 +00:00
|
|
|
type: Standards Track
|
2018-03-21 12:51:05 +00:00
|
|
|
category: Core
|
|
|
|
status: Final
|
|
|
|
created: 2017-02-09
|
2018-03-20 15:10:58 +00:00
|
|
|
---
|
2017-02-09 18:16:57 +00:00
|
|
|
|
|
|
|
## Abstract
|
|
|
|
|
|
|
|
An instruction is designated to remain as an invalid instruction.
|
|
|
|
|
|
|
|
## Motivation
|
|
|
|
|
|
|
|
The invalid instruction can be used as a distinct reason to abort execution.
|
|
|
|
|
|
|
|
## Specification
|
|
|
|
|
|
|
|
The opcode `0xfe` is the `INVALID` instruction. It can be used to abort the execution (i.e. duplicates as an `ABORT` instruction).
|
|
|
|
|
|
|
|
## Backwards Compatibility
|
|
|
|
|
|
|
|
This instruction was never used and therefore has no effect on past contracts.
|
|
|
|
|
|
|
|
## Copyright
|
|
|
|
|
|
|
|
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|