summaryrefslogtreecommitdiff
path: root/instruction-init.h
diff options
context:
space:
mode:
Diffstat (limited to 'instruction-init.h')
-rw-r--r--instruction-init.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/instruction-init.h b/instruction-init.h
index 01b3fd8..ccfbc85 100644
--- a/instruction-init.h
+++ b/instruction-init.h
@@ -15,8 +15,13 @@ void setIT(int i, uintptr_t p, Addressing r){
*r1 = r;
}
+uintptr_t getITFunction(int i){
+ Addressing* r = (IT + (sizeof(uintptr_t)*i));
+ return *r;
+}
+
Addressing getITAddressing(int i){
- Addressing* r = IT + (sizeof(uintptr_t)*256)) + (sizeof(Addressing)*i)
+ Addressing* r = (IT + (sizeof(uintptr_t)*256) + (sizeof(Addressing)*i));
return *r;
}