Repository navigation
Regenerate 8080.min.js with current interrupt/EI behavior and add drift check - #16
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15
Changes
8080.min.jsregenerated from current8080.jswithterser 5.51.2 -c -m. The interrupt export now clears INTE and the pending EI, charges 11 T-states and mapsinterrupt(0)to0x0000; EI (0xFB) setseiPendinginstead of enabling interrupts immediately. The oldg.pc=u||56pattern is gone.package.json: newminifyscript (npx --yes terser@5.51.2 8080.js -c -m -o 8080.min.js), pinned so the output is deterministic. No dependencies added.test/node/minified.test.js: loads only8080.min.jsin a separatevmcontext and checks the interrupt(): INTE not cleared on acceptance, no EI delay, 0 T-states charged; steps() leaks a global T #13 contracts (EI delay, 11 T-states, INTE cleared on acceptance, nested request ignored until EI + one instruction, DI cancels pending EI,interrupt(0)→0x0000, default vector0x38)..github/workflows/test.yml: new step runsnpm run minifyand fails ongit diff --exit-code -- 8080.min.js.README.md: notes that8080.min.jsis a build artifact, which file browsers/Node/tests load, and how to regenerate it.Verification
npm test: 24 tests, 24 passed.8080.min.jsfails 5 of 6 cases; against the regenerated file all pass.tersertwice produces byte-identical output, andnpm run minify && git diff --exit-code -- 8080.min.jsis clean after the commit.