From f0d189635d40ed73aa2f28b7b8daf639d4d8efba Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 15 May 2024 21:03:12 +0300 Subject: [PATCH] Implement (FAKE) T_GET function, so GORILLA.COM works. --- cpm/cpm.go | 5 +++++ cpm/cpm_syscalls.go | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cpm/cpm.go b/cpm/cpm.go index 3ce1be9..ea3fcc5 100644 --- a/cpm/cpm.go +++ b/cpm/cpm.go @@ -323,6 +323,11 @@ func New(logger *slog.Logger, prn string) *CPM { Desc: "F_SIZE", Handler: SysCallFileSize, } + sys[105] = CPMHandler{ + Desc: "T_GET", + Handler: SysCallTime, + Fake: true, + } // Create the object tmp := &CPM{ diff --git a/cpm/cpm_syscalls.go b/cpm/cpm_syscalls.go index 3b07817..95a43dc 100644 --- a/cpm/cpm_syscalls.go +++ b/cpm/cpm_syscalls.go @@ -1351,3 +1351,7 @@ func SysCallDriveROVec(cpm *CPM) error { cpm.CPU.States.HL.Lo = 0x00 return nil } + +func SysCallTime(cpm *CPM) error { + return nil +}