Skip to content

Commit

Permalink
Added DirectScreenFunctions, which is used by Turbo Pascal
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Jun 2, 2024
1 parent 3835ca7 commit f5f73b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpm/cpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ func New(logger *slog.Logger, prn string, condriver string, ccp string) (*CPM, e
Handler: SysCallTime,
Fake: true,
}
sys[113] = CPMHandler{ // used by Turbo Pascal
Desc: "DirectScreenFunctions",
Handler: SysCallDirectScreenFunctions,
Fake: true,
}

//
// Create and populate our syscall table for the BIOS syscalls.
Expand Down
7 changes: 7 additions & 0 deletions cpm/cpm_bdos.go
Original file line number Diff line number Diff line change
Expand Up @@ -1441,3 +1441,10 @@ func SysCallDriveReset(cpm *CPM) error {
func SysCallTime(cpm *CPM) error {
return nil
}

// SysCallDirectScreenFunctions receives a pointer in DE to a parameter block,
// which specifies which function to run. I've only seen this invoked in
// TurboPascal when choosing the "Execute" or "Run" options.
func SysCallDirectScreenFunctions(cpm *CPM) error {
return nil
}

0 comments on commit f5f73b2

Please sign in to comment.