From 2b62fa482a7553c07e7664b736a646af35c1f72d Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: 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. --- include/memory.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include') 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); -- cgit v1.2.1