forked from skx/go.vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate all traps from 0x0000-0xFFFF with a NOP.
This means the CPU doesn't need to report a warning/error. Also updated the trap-signature such that each invoked handler knows what number it was called by - which might be useful in future.
- Loading branch information
Showing
3 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# About: | ||
# | ||
# This program demonstrates the invokation of a trap-function which isn't | ||
# implemented. | ||
# | ||
# Usage: | ||
# | ||
# $ go.vm run ./trap.missing.in | ||
# | ||
# Or compile, then execute: | ||
# | ||
# $ go.vm compile ./trap.missing.in | ||
# $ go.vm execute ./trap.missing.raw | ||
# | ||
|
||
# Call the trap | ||
int 0xf00f |