From 5743c49a38a17fe08e0b2436344a435110378958 Mon Sep 17 00:00:00 2001 From: Christian Vogelgsang Date: Fri, 17 Jan 2025 11:05:30 +0100 Subject: [PATCH] fixed DOS tags --- amitools/vamos/libtypes/dostag.py | 73 +++++++++++++++++-------------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/amitools/vamos/libtypes/dostag.py b/amitools/vamos/libtypes/dostag.py index 2072cc63..afa02dda 100644 --- a/amitools/vamos/libtypes/dostag.py +++ b/amitools/vamos/libtypes/dostag.py @@ -1,42 +1,49 @@ from enum import IntEnum +from .tag import CommonTag + +SYS_Dummy = CommonTag.TAG_USER + 32 +NP_Dummy = CommonTag.TAG_USER + 1000 +ADO_Dummy = CommonTag.TAG_USER + 2000 + class DosTag(IntEnum): # System - SYS_Input = 33 - SYS_Output = 34 - SYS_Asynch = 35 + SYS_Input = SYS_Dummy + 1 + SYS_Output = SYS_Dummy + 2 + SYS_Asynch = SYS_Dummy + 3 SYS_UserShell = 36 SYS_CustomShell = 37 + SYS_Error = SYS_Dummy + 6 # CreateNewProc - NP_SegList = 1001 - NP_FreeSegList = 1002 - NP_Entry = 1003 - NP_Input = 1004 - NP_Output = 1005 - NP_CloseInput = 1006 - NP_CloseOutput = 1007 - NP_Error = 1008 - NP_CloseError = 1009 - NP_CurrentDir = 1010 - NP_StackSize = 1011 - NP_Name = 1012 - NP_Priority = 1013 - NP_ConsoleTask = 1014 - NP_WindowPtr = 1015 - NP_HomeDir = 1016 - NP_CopyVars = 1017 - NP_Cli = 1018 - NP_Path = 1019 - NP_CommandName = 1020 - NP_Arguments = 1021 - NP_NotifyOnDeath = 1022 - NP_Synchronous = 1023 - NP_ExitCode = 1024 - NP_ExitData = 1025 + NP_SegList = NP_Dummy + 1 + NP_FreeSegList = NP_Dummy + 2 + NP_Entry = NP_Dummy + 3 + NP_Input = NP_Dummy + 4 + NP_Output = NP_Dummy + 5 + NP_CloseInput = NP_Dummy + 6 + NP_CloseOutput = NP_Dummy + 7 + NP_Error = NP_Dummy + 8 + NP_CloseError = NP_Dummy + 9 + NP_CurrentDir = NP_Dummy + 10 + NP_StackSize = NP_Dummy + 11 + NP_Name = NP_Dummy + 12 + NP_Priority = NP_Dummy + 13 + NP_ConsoleTask = NP_Dummy + 14 + NP_WindowPtr = NP_Dummy + 15 + NP_HomeDir = NP_Dummy + 16 + NP_CopyVars = NP_Dummy + 17 + NP_Cli = NP_Dummy + 18 + NP_Path = NP_Dummy + 19 + NP_CommandName = NP_Dummy + 20 + NP_Arguments = NP_Dummy + 21 + NP_NotifyOnDeath = NP_Dummy + 22 + NP_Synchronous = NP_Dummy + 23 + NP_ExitCode = NP_Dummy + 24 + NP_ExitData = NP_Dummy + 25 # AllocDosObject - ADO_FH_Mode = 2001 - ADO_DirLen = 2002 - ADR_CommNameLen = 2003 - ADR_CommFileLen = 2004 - ADR_PromptLen = 2005 + ADO_FH_Mode = ADO_Dummy + 1 + ADO_DirLen = ADO_Dummy + 2 + ADR_CommNameLen = ADO_Dummy + 3 + ADR_CommFileLen = ADO_Dummy + 4 + ADR_PromptLen = ADO_Dummy + 5