Enum csx64::asm::AsmErrorKind[][src]

pub enum AsmErrorKind {
    ReadError(Error),
    ArgsExpectedCount(&'static [u8]),
    ArgsExpectedCountAtLeast(u8),
    ExtraContentAfterArgs,
    FailedCriticalExpression(EvalError),
    InvalidPrefixForThisInstruction,
    PrefixWithoutInstruction,
    ExpectedSegment,
    SegmentAlreadyCompleted,
    LabelOnSegmentLine,
    AssertFailure,
    AssertArgHadSizeSpec,
    AssertArgNotLogical(ValueType),
    ExpectedString,
    UnexpectedString,
    IncompleteString,
    IncompleteEscape,
    InvalidEscape,
    ExpectedExprTerm,
    ExpectedOpenParen,
    MissingCloseParen,
    UnexpectedOpenParen,
    UnexpectedCloseParen,
    ParenInteriorNotExpr,
    ExpectedCommaBeforeToken,
    UnrecognizedMacroInvocation,
    UseOfTildeNot,
    IllFormedNumericLiteral,
    NumericLiteralWithZeroPrefix,
    LocalSymbolBeforeNonlocal,
    InvalidSymbolName,
    ReservedSymbolName,
    ExpectedBinaryValue,
    EmptyBinaryValue,
    CharacterLiteralNotUnicode,
    CharacterLiteralNotSingleChar,
    LabelOutsideOfSegment,
    SymbolAlreadyDefined,
    IllegalInCurrentSegment,
    TimesIterOutisideOfTimes,
    ExpectedAddress,
    BadAddress(BadAddress),
    TimesMissingCount,
    TimesCountNotImm,
    TimesCountHadSizeSpec,
    TimesCountNotCriticalExpression,
    TimesCountNotInteger,
    TimesCountWasNegative,
    TimesCountTooLarge,
    TimesUsedOnEmptyLine,
    IfMissingExpr,
    IfExprNotImm,
    IfExprHadSizeSpec,
    IfExprNotCriticalExpression,
    IfExprNotLogical,
    IfUsedOnEmptyLine,
    UnrecognizedInstruction,
    ExpectedExpressionArg(u8),
    WriteOutsideOfSegment,
    WriteInBssSegment,
    InstructionOutsideOfTextSegment,
    IllegalPatch(IllegalPatchReason),
    ExprIllegalError(IllegalReason),
    UnsupportedOperandSize,
    OperandsHadDifferentSizes,
    ForcedSizeViolation,
    CouldNotDeduceOperandSize,
    TernaryOpUnsupportedTypes,
    BinaryOpUnsupportedTypes,
    UnaryOpUnsupportedType,
    ValueOpUnsupportedType,
    BinaryLvalueOpUnsupportedTypes,
    BinaryLvalueUnorderedOpUnsupportedTypes,
    FPUBinaryOpUnsupportedTypes,
    FPUBinaryOpNeitherST0,
    FPUBinaryOpPop2SrcNotST0,
    EQUWithoutLabel,
    EQUArgumentHadSizeSpec,
    AlignArgumentHadSizeSpec,
    AlignValueNotExpr,
    AlignValueNotCriticalExpr,
    AlignValueNotPowerOf2,
    AlignValueNotInteger,
    AlignValueNegative,
    AlignValueExceedsMaxAlign,
    AlignOutsideOfSegment,
    DeclareValueHadSizeSpec,
    DeclareValueNotExpr,
    ReserveValueNotExpr,
    ReserveValueHadSizeSpec,
    ReserveValueNotCriticalExpr,
    ReserveValueNegative,
    ReserveValueNotInteger,
    ReserveValueTooLarge,
    ReserveOutsideOfBss,
    ExpectedIdentifier,
    IdentifierHadSizeSpec,
    IdentifierIsGlobalAndExtern,
    RedundantGlobalOrExternDecl {
        prev_line_num: usize,
    },
    LEADestNotRegister,
    LEADestByte,
    LEASrcNotAddress,
    GlobalSymbolWasNotDefined,
    UnknownSymbol(String),
    StringDeclareNotByteSize,
    VPUMaskNotRecognized,
    VPUMaskUnclosedBracket,
    VPUZeroingWithoutOpmask,
    VPUOpmaskWasK0,
    VPUMaskUnrecognizedMode,
}

The kinds of errors that can occur during assembly. These are meant to be specific enough to have customized, detailed error messages.

Variants

ReadError(Error)

A read error occurred, which cause assembly to halt prematurely.

ArgsExpectedCount(&'static [u8])

Incorrect number of arguments supplied. Expected this many.

ArgsExpectedCountAtLeast(u8)

Incorrect number of arguments supplied. Expected at least this many.

ExtraContentAfterArgs

There was unknown content after the arguments list.

FailedCriticalExpression(EvalError)

Failed to evaluate a critical expression for the given reason.

InvalidPrefixForThisInstruction

The prefix on this instruction is not allowed.

PrefixWithoutInstruction
ExpectedSegment
SegmentAlreadyCompleted
LabelOnSegmentLine
AssertFailure
AssertArgHadSizeSpec
AssertArgNotLogical(ValueType)
ExpectedString
UnexpectedString
IncompleteString
IncompleteEscape
InvalidEscape
ExpectedExprTerm
ExpectedOpenParen
MissingCloseParen
UnexpectedOpenParen
UnexpectedCloseParen
ParenInteriorNotExpr
ExpectedCommaBeforeToken
UnrecognizedMacroInvocation
UseOfTildeNot
IllFormedNumericLiteral
NumericLiteralWithZeroPrefix
LocalSymbolBeforeNonlocal
InvalidSymbolName
ReservedSymbolName
ExpectedBinaryValue
EmptyBinaryValue
CharacterLiteralNotUnicode
CharacterLiteralNotSingleChar
LabelOutsideOfSegment
SymbolAlreadyDefined
IllegalInCurrentSegment
TimesIterOutisideOfTimes
ExpectedAddress
BadAddress(BadAddress)
TimesMissingCount
TimesCountNotImm
TimesCountHadSizeSpec
TimesCountNotCriticalExpression
TimesCountNotInteger
TimesCountWasNegative
TimesCountTooLarge
TimesUsedOnEmptyLine
IfMissingExpr
IfExprNotImm
IfExprHadSizeSpec
IfExprNotCriticalExpression
IfExprNotLogical
IfUsedOnEmptyLine
UnrecognizedInstruction
ExpectedExpressionArg(u8)
WriteOutsideOfSegment
WriteInBssSegment
InstructionOutsideOfTextSegment
IllegalPatch(IllegalPatchReason)
ExprIllegalError(IllegalReason)
UnsupportedOperandSize
OperandsHadDifferentSizes
ForcedSizeViolation
CouldNotDeduceOperandSize
TernaryOpUnsupportedTypes
BinaryOpUnsupportedTypes
UnaryOpUnsupportedType
ValueOpUnsupportedType
BinaryLvalueOpUnsupportedTypes
BinaryLvalueUnorderedOpUnsupportedTypes
FPUBinaryOpUnsupportedTypes
FPUBinaryOpNeitherST0
FPUBinaryOpPop2SrcNotST0
EQUWithoutLabel
EQUArgumentHadSizeSpec
AlignArgumentHadSizeSpec
AlignValueNotExpr
AlignValueNotCriticalExpr
AlignValueNotPowerOf2
AlignValueNotInteger
AlignValueNegative
AlignValueExceedsMaxAlign
AlignOutsideOfSegment
DeclareValueHadSizeSpec
DeclareValueNotExpr
ReserveValueNotExpr
ReserveValueHadSizeSpec
ReserveValueNotCriticalExpr
ReserveValueNegative
ReserveValueNotInteger
ReserveValueTooLarge
ReserveOutsideOfBss
ExpectedIdentifier
IdentifierHadSizeSpec
IdentifierIsGlobalAndExtern
RedundantGlobalOrExternDecl

Fields of RedundantGlobalOrExternDecl

prev_line_num: usize
LEADestNotRegister
LEADestByte
LEASrcNotAddress
GlobalSymbolWasNotDefined
UnknownSymbol(String)
StringDeclareNotByteSize
VPUMaskNotRecognized
VPUMaskUnclosedBracket
VPUZeroingWithoutOpmask
VPUOpmaskWasK0
VPUMaskUnrecognizedMode

Trait Implementations

impl Debug for AsmErrorKind[src]

impl From<BadAddress> for AsmErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WrappingAs for T[src]