Blame view

stack.h 374 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
//
// Created by imanol on 12/25/16.
//

#ifndef SYNACORVM_STACK_H
#define SYNACORVM_STACK_H

#include <stdint.h>
9
10
11
#include "cpu.h"

extern uint8_t STACK_FAULT;
Imanol-Mikel Barba Sabariego authored
12
13

void initialize_stack();
14
void free_stack();
15
16
void stack_push(uint16_t value);
uint16_t stack_pop();
Imanol-Mikel Barba Sabariego authored
17
18
19
20
uint32_t stack_dump(uint16_t **dump);
void stack_load(uint16_t *dump,uint32_t size);
Imanol-Mikel Barba Sabariego authored
21
#endif //SYNACORVM_STACK_H