summaryrefslogtreecommitdiffstats
path: root/tpu.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-07-26 19:05:46 +0200
committerLouis Burda <quent.burda@gmail.com>2023-07-26 19:07:22 +0200
commit29465804bb9f3bc0eb0f538ec450e9177c0c4767 (patch)
tree25c48b99b944c1b8cfa166023643c9206126c8d7 /tpu.h
parent130db985e5594204897ad28d7463e7e9b5ef94c7 (diff)
downloadtis100-29465804bb9f3bc0eb0f538ec450e9177c0c4767.tar.gz
tis100-29465804bb9f3bc0eb0f538ec450e9177c0c4767.zip
Implement limited integer literal parsing
Diffstat (limited to 'tpu.h')
-rw-r--r--tpu.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpu.h b/tpu.h
index 6d89c66..184ed78 100644
--- a/tpu.h
+++ b/tpu.h
@@ -42,7 +42,7 @@ union tpu_inst_op_val {
struct label_map_link {
char *label;
- size_t pc;
+ int pc;
struct label_map_link *next;
};
@@ -88,7 +88,7 @@ struct tpu {
struct label_map label_map;
struct tpu_inst insts[TPU_MAX_INST_CNT];
- size_t inst_cnt, label_cnt;
+ int inst_cnt, label_cnt;
};
struct tpu_map_link {
@@ -109,8 +109,8 @@ struct tis {
void label_map_init(struct label_map *map);
void label_map_deinit(struct label_map *map);
-bool label_map_add(struct label_map *map, const char *name, size_t pc);
-size_t label_map_get(struct label_map *map, const char *name);
+bool label_map_add(struct label_map *map, const char *name, int pc);
+int label_map_get(struct label_map *map, const char *name);
void tpu_port_init(struct tpu_port *port);
void tpu_port_deinit(struct tpu_port *port);