Add seti and int operators

This commit is contained in:
2019-11-23 12:21:14 +01:00
parent f0e00ff018
commit 99f616e1e4
16 changed files with 153 additions and 66 deletions

View File

@@ -0,0 +1,16 @@
#include <cstdio>
#include <execute/interrupts.hpp>
namespace Execute
{
std::vector<InterruptFn> GetInterrupts()
{
return std::vector<InterruptFn>
{
// 0 print char
[](Execute::Registers & registers) { std::putc(registers.A, stdout); },
// 1 print decimal integer
[](Execute::Registers & registers) { std::printf("%i", registers.A); }
};
}
}