Skip to content

Commit

Permalink
An unknown custom syscall is NOT an error
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed May 25, 2024
1 parent 83cefc0 commit e93824c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpm/cpm_bios.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func BiosSysCallReserved1(cpm *CPM) error {
}

switch hl {

case 0x0000:
// Magic values in the registers
cpm.CPU.States.HL.Hi = 'S'
Expand Down Expand Up @@ -268,7 +269,7 @@ func BiosSysCallReserved1(cpm *CPM) error {
if old != str {
fmt.Printf("Console driver changed from %s to %s.\n", cpm.output.GetName(), driver.GetName())
} else {
fmt.Printf("console driver is already %s, making no change.\n", str)
fmt.Printf("Console driver is already %s, making no change.\n", str)
}

case 0x0003:
Expand Down Expand Up @@ -304,8 +305,9 @@ func BiosSysCallReserved1(cpm *CPM) error {
} else {
cpm.quiet = false
}

default:
return fmt.Errorf("unknown custom BIOS function HL:%04X", hl)
fmt.Printf("Unknown custom BIOS function HL:%04X, ignoring", hl)
}

return nil
Expand Down

0 comments on commit e93824c

Please sign in to comment.