Skip to main content

encode_single

Function encode_single 

Source
pub fn encode_single(n: u8) -> Option<u8>
Expand description

Encodes a stack index into a DUPN/SWAPN immediate byte.

Returns None if the value is outside the valid range.