From 4700ea92db46ad4f1209139828d6402789a09088 Mon Sep 17 00:00:00 2001 From: Dean Netherton Date: Thu, 7 May 2020 14:31:41 +1000 Subject: [PATCH 1/3] sn76489: minor fix to tracing for SN7_NOTE --- Source/HBIOS/sn76489.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/HBIOS/sn76489.asm b/Source/HBIOS/sn76489.asm index 524b253d..a15e9429 100644 --- a/Source/HBIOS/sn76489.asm +++ b/Source/HBIOS/sn76489.asm @@ -116,7 +116,7 @@ SN7_VOLUME: SN7_NOTE: AUDTRACE(SNT_NOTE) - AUDTRACE_L + AUDTRACE_HL AUDTRACE_CR LD H,0 From 4369b1f288fdc0a711587cc25d0e3b751c2fa8ed Mon Sep 17 00:00:00 2001 From: Dean Netherton Date: Thu, 7 May 2020 15:08:27 +1000 Subject: [PATCH 2/3] Documentation: removed reference to function Inc Timer, as its not implemented --- Source/Doc/Architecture.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Source/Doc/Architecture.md b/Source/Doc/Architecture.md index 330d7887..d749cc52 100644 --- a/Source/Doc/Architecture.md +++ b/Source/Doc/Architecture.md @@ -1806,15 +1806,6 @@ available along with the registers/information used as input. | _Returned Values_ | A: Status (0=OK, else error) -#### SYSSET Subfunction 0xD2 -- Inc Timer (TIMER) - -| _Entry Parameters_ -| BC: 0xF9D2 - -| _Returned Values_ -| A: Status (0=OK, else error) - - #### SYSSET Subfunction 0xE0 -- Set Boot Information (BOOTINFO) | _Entry Parameters_ From 3b05013b62faa0051137c6c210016a40952ec9bb Mon Sep 17 00:00:00 2001 From: Dean Netherton Date: Thu, 7 May 2020 15:16:30 +1000 Subject: [PATCH 3/3] HBIOS: Get timer tick now include the tick frequency --- Source/Doc/Architecture.md | 1 + Source/HBIOS/hbios.asm | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Doc/Architecture.md b/Source/Doc/Architecture.md index d749cc52..ffc3120e 100644 --- a/Source/Doc/Architecture.md +++ b/Source/Doc/Architecture.md @@ -1721,6 +1721,7 @@ available along with the registers/information returned. | _Returned Values_ | A: Status (0=OK, else error) | DE:HL: Current Timer Tick Count Value +| C: Tick frequency (typically 50 or 60) #### SYSGET Subfunction 0xD1 -- Get Seconds Count (SECONDS) diff --git a/Source/HBIOS/hbios.asm b/Source/HBIOS/hbios.asm index 0f0fa77f..b4830d31 100644 --- a/Source/HBIOS/hbios.asm +++ b/Source/HBIOS/hbios.asm @@ -2458,6 +2458,7 @@ SYS_GETTIMER: HB_DI CALL LD32 HB_EI + LD C, TICKFREQ XOR A RET ;