aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commit2b62fa482a7553c07e7664b736a646af35c1f72d (patch)
tree1f3ab646228c302e8a85289a66bdd81b15871737 /include
parent59546320f16259b1bc8a1d397dd9c0203a0349f8 (diff)
Removed Memory module's IP flag.
[#28] IP flag served no purpose except to facilitate rendering. However, performance has a higher priority so I've eliminated this feature. IP rendering can still be implemented via other methods.
Diffstat (limited to 'include')
-rw-r--r--include/memory.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/memory.h b/include/memory.h
index e7b97ee..9797cd7 100644
--- a/include/memory.h
+++ b/include/memory.h
@@ -10,7 +10,6 @@
#ifndef SALIS_MEMORY_H
#define SALIS_MEMORY_H
-#define IP_FLAG 0x80
#define BLOCK_START_FLAG 0x40
#define ALLOCATED_FLAG 0x20
#define INSTRUCTION_MASK 0x1f
@@ -30,11 +29,6 @@ SALIS_API uint32 sal_mem_get_order(void);
*/
SALIS_API uint32 sal_mem_get_size(void);
-/** Get amount of addresses with the IP flag set on them.
-* @return Amount of addresses with the IP flag set
-*/
-SALIS_API uint32 sal_mem_get_ip_count(void);
-
/** Get amount of addresses with the memory-block-start flag set on them.
* @return Amount of addresses with the memory-block-start flag set
*/
@@ -67,12 +61,6 @@ SALIS_API boolean sal_mem_is_over_capacity(void);
*/
SALIS_API boolean sal_mem_is_address_valid(uint32 address);
-/** Check if given address has the IP flag set.
-* @param address Address being queried
-* @return IP flag is set on this address
-*/
-SALIS_API boolean sal_mem_is_ip(uint32 address);
-
/** Check if given address has the memory-block-start flag set.
* @param address Address being queried
* @return Memory-block-start flag is set on this address
@@ -85,10 +73,8 @@ SALIS_API boolean sal_mem_is_block_start(uint32 address);
*/
SALIS_API boolean sal_mem_is_allocated(uint32 address);
-void _sal_mem_set_ip(uint32 address);
void _sal_mem_set_block_start(uint32 address);
void _sal_mem_set_allocated(uint32 address);
-void _sal_mem_unset_ip(uint32 address);
void _sal_mem_unset_block_start(uint32 address);
void _sal_mem_unset_allocated(uint32 address);