Initial 80386 microcode commit.

This commit is contained in:
Andrew Jenner
2026-05-23 11:01:52 +01:00
parent e355b03ce3
commit 79596c4c8b
139 changed files with 47172 additions and 2 deletions
@@ -0,0 +1,26 @@
#include "alfe/main.h"
#ifndef INCLUDED_BOOLEAN_FUNCTIONS_H
#define INCLUDED_BOOLEAN_FUNCTIONS_H
#include "alfe/function.h"
class LogicalNotBoolean : public Nullary<Function, LogicalNotBoolean>
{
public:
class Body : public Nullary::Body
{
public:
Value evaluate(List<Value> arguments, Span span) const
{
return Value(!arguments.begin()->value<bool>());
}
Identifier identifier() const { return OperatorNot(); }
FunctionType type() const
{
return FunctionType(BooleanType(), BooleanType());
}
};
};
#endif // INCLUDED_BOOLEAN_FUNCTIONS_H