From ecf2cdfba2d9f83ce0bab6a25419c6d3e0b1a1b4 Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Wed, 26 Mar 2025 11:37:41 -0700 Subject: [PATCH] Fix Device Attribute Definition in System Guide, Issue #515 --- Source/Doc/SystemGuide.md | 4 +++- Source/HBIOS/hbios.asm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Doc/SystemGuide.md b/Source/Doc/SystemGuide.md index a17bbc19..08c5b15c 100644 --- a/Source/Doc/SystemGuide.md +++ b/Source/Doc/SystemGuide.md @@ -909,7 +909,9 @@ Returns the current Line Characteristics (DE) of the specified Character Returns device information for the specified Character Unit (C). The status (A) is a standard HBIOS result code. -Device Attribute (C) values are: 0 = RS/232, 1 = Terminal, 2 = Parallel. +The two high bits of Device Attribute (C) are: 00 = RS/232, 01 = Terminal, +10 = Parallel. The remaining bits should be ignored and are used +internally. Device Type (D) indicates the specific hardware driver that handles the specified Character Unit. Values are listed at the start of this diff --git a/Source/HBIOS/hbios.asm b/Source/HBIOS/hbios.asm index 8733d758..61819807 100644 --- a/Source/HBIOS/hbios.asm +++ b/Source/HBIOS/hbios.asm @@ -8429,7 +8429,7 @@ PS_SERIAL: CALL NEWLINE RET ; -; PRINT CHARACTER TYPE (SERIAL ATTRIBUTE IN E) +; PRINT CHARACTER TYPE (SERIAL ATTRIBUTE IN C) ; PS_PRTST: LD HL,PS_STPPT