Skip to content

Commit

Permalink
Implemented F_ERRMODE, as a NOP. (#120)
Browse files Browse the repository at this point in the history
This allows BBCBASIC.COM to run.
  • Loading branch information
skx committed Jun 18, 2024
1 parent baaeb11 commit 46768a9
Show file tree
Hide file tree
Showing 2 changed files with 11 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 @@ -351,6 +351,11 @@ func New(logger *slog.Logger, prn string, condriver string, ccp string) (*CPM, e
Handler: SysCallDriveReset,
Fake: true,
}
sys[45] = CPMHandler{
Desc: "F_ERRMODE",
Handler: SysCallErrorMode,
Fake: true,
}
sys[105] = CPMHandler{
Desc: "T_GET",
Handler: SysCallTime,
Expand Down
6 changes: 6 additions & 0 deletions cpm/cpm_bdos.go
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,12 @@ func SysCallDriveReset(cpm *CPM) error {
return nil
}

// SysCallErrorMode implements a NOP version of F_ERRMODE.
func SysCallErrorMode(cpm *CPM) error {
return nil
}

// SysCallTime implements a NOP version of T_GET.
func SysCallTime(cpm *CPM) error {
return nil
}
Expand Down

0 comments on commit 46768a9

Please sign in to comment.