MicrOS
stack_operations.c File Reference
#include <stdint.h>
#include <v8086/v8086.h>
#include <v8086/mod_rm_parsing.h>
#include <stddef.h>
#include <v8086/stack.h>
#include "stack_operations.h"

Functions

int16_t push_gpr (v8086 *machine, uint8_t opcode)
 
int16_t pop_gpr (v8086 *machine, uint8_t opcode)
 
int16_t pop_rm (v8086 *machine)
 
int16_t push_all (v8086 *machine)
 
int16_t pop_all (v8086 *machine)
 
int16_t push_immediate (v8086 *machine, uint8_t width)
 
int16_t enter (v8086 *machine, uint8_t width)
 
int16_t leave (v8086 *machine, uint8_t width)
 

Function Documentation

◆ enter()

int16_t enter ( v8086 machine,
uint8_t  width 
)

◆ leave()

int16_t leave ( v8086 machine,
uint8_t  width 
)

◆ pop_all()

int16_t pop_all ( v8086 machine)

◆ pop_gpr()

int16_t pop_gpr ( v8086 machine,
uint8_t  opcode 
)

◆ pop_rm()

int16_t pop_rm ( v8086 machine)

◆ push_all()

int16_t push_all ( v8086 machine)

◆ push_gpr()

int16_t push_gpr ( v8086 machine,
uint8_t  opcode 
)

◆ push_immediate()

int16_t push_immediate ( v8086 machine,
uint8_t  width 
)