Skip to content

Handle unsupported BIOS INT 15h functions - #2607

Draft
maximilien-noal wants to merge 1 commit into
masterfrom
fix/bios-int15-unsupported
Draft

maximilien-noal wants to merge 1 commit into
masterfrom
fix/bios-int15-unsupported

Conversation

@maximilien-noal

Copy link
Copy Markdown
Member

Description of Changes

Return the BIOS unsupported-function response when INT 15h has no registered handler.

Rationale behind Changes

Programs can probe unsupported BIOS services without an unhandled dispatcher operation.

Suggested Testing Steps

  • dotnet build tmp\real-mode-pr\src\Spice86.sln --no-restore --nologo -v:q: passed with 0 warnings and 0 errors.
  • Local tests were not run as requested. Automatic GitHub checks may run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 08:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

1 open issue
What changed in this PR

Return the BIOS “unsupported function” response for INT 15h calls when no handler is registered, avoiding unhandled dispatcher behavior when software probes BIOS services.

Changes:

  • Added a guard in Run() to detect whether an AH operation has a runnable handler.
  • When no handler exists, logs a warning and returns the BIOS unsupported-function response.
File Description
src/​Spice86.Core/​Emulator/​InterruptHandlers/​Bios/​SystemBiosInt15Handler.cs Adds fallback handling for INT 15h AH operations without registered handlers (log + Unsupported()).

Review effort: Lite

Comment on lines 96 to +103
byte operation = State.AH;
if (!HasRunnable(operation)) {
if (LoggerService.IsEnabled(LogLevel.Warning)) {
LoggerService.LogWarning("INT 15h: unsupported function AH={AH:X2}, AL={AL:X2}", operation, State.AL);
}
Unsupported();
return;
}
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

No change in generated code or listings. Base 7ee006f4, head d498596e.

Full diff and dumps (zip) · Run

@maximilien-noal
maximilien-noal marked this pull request as draft December 3, 2026 20:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants