blob: 2ef5caada2d469d8f82d206fd307bf37befbe883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// file : test/ui/v1/jumps/ui.c
// project : Salis-VM
// author : Paul Oliver <contact@pauloliver.dev>
#include <assert.h>
#include <stdint.h>
#include <threads.h>
#include <zlib.h>
#include "arch_spec.h"
#include "arch_inst.h"
#include "compress.h"
#include "salis.h"
int main(void) {
uint8_t lok = loka;
salis_init();
while (lok != lokp) {
if (mvec_get_inst(g_cores, g_cores->pvec->ip) == lok) {
lok = lok + 1;
}
salis_step(1);
assert(g_cores->pvec->ip < ANC_SIZE);
}
salis_save_and_free();
return 0;
}
|