removed p! and p@ and added 'mem' that just pushes the addr os the persistent memory on to the stack and than you can write/read using standard ! and @ nd write at an offset uaing pointer arithmetic

This commit is contained in:
root
2025-12-28 11:46:01 +01:00
parent ecb41d572a
commit d4b8ce6012
4 changed files with 45 additions and 56 deletions

View File

@@ -324,7 +324,6 @@ IntrinsicEmitter = Callable[["FunctionEmitter"], None]
class Word:
name: str
immediate: bool = False
stack_effect: str = "( -- )"
definition: Optional[Union[Definition, AsmDefinition]] = None
macro: Optional[MacroHandler] = None
intrinsic: Optional[IntrinsicEmitter] = None
@@ -1511,8 +1510,6 @@ class _CTHandleTable:
class Assembler:
def __init__(self, dictionary: Dictionary) -> None:
self.dictionary = dictionary
self.stack_bytes = 65536
self.io_buffer_bytes = 128
self._string_literals: Dict[str, Tuple[str, int]] = {}
self._float_literals: Dict[float, str] = {}
self._data_section: Optional[List[str]] = None