Enum csx64::common::Syscall[][src]

pub enum Syscall {
    Exit,
    Read,
    Write,
    Seek,
    Break,
}

The system calls recognized by the emulator.

System call codes should be loaded into the RAX register. Because 32-bit writes zero the upper 32-bits and syscall codes are unsigned, it suffices to write to EAX. Arguments to a system call procedure should be loaded into RBX, RCX, RDX (or partitions thereof, depending on procedure).

Variants

Exit

Instructs the emulator to end execution in a non-error state with the i32 return value in EBX. This effectively means the program terminated rather than crashing.

Read
Write
Seek
Break

Trait Implementations

impl Clone for Syscall[src]

impl Copy for Syscall[src]

impl FromPrimitive for Syscall[src]

Auto Trait Implementations

impl RefUnwindSafe for Syscall

impl Send for Syscall

impl Sync for Syscall

impl Unpin for Syscall

impl UnwindSafe for Syscall

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]