diff options
| author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-09-07 18:29:52 +1200 |
|---|---|---|
| committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-09-07 18:29:52 +1200 |
| commit | b90cd9bd45322c103433e97e775e88991930313c (patch) | |
| tree | 901373a0a5c2116b69220cc671c5752baa775baf /src/emulators/headless_emulator.rs | |
| parent | 56ce81819b6ce71ba8c5bd46fd5bba5370484984 (diff) | |
| download | bedrock-pc-b90cd9bd45322c103433e97e775e88991930313c.zip | |
Implement DB4 instruction for unit tests
When the DB4 instruction is evaluated, a single '.' character will be
printed to stdout if the return stack is empty and the working stack
contains a single 0xff byte, otherwise a single 'X' character will be
printed to stdout.
This is to facilitate unit testing the instruction set with a Bedrock
program, from within the emulator.
Diffstat (limited to 'src/emulators/headless_emulator.rs')
0 files changed, 0 insertions, 0 deletions
