mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 22:46:30 +00:00
delete runtime
This commit is contained in:
parent
3a8d833e6a
commit
86bcf39b65
@ -13,7 +13,7 @@ PushPtr ptr pointer value
|
|||||||
Pop
|
Pop
|
||||||
LoadLocal int stack position
|
LoadLocal int stack position
|
||||||
StoreLocal int stack position
|
StoreLocal int stack position
|
||||||
Call
|
Call int arg count
|
||||||
Return
|
Return
|
||||||
Jump
|
Jump
|
||||||
JumpIfNotZero
|
JumpIfNotZero
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
export type Ins = Ops | number;
|
export type Ins = Ops | number;
|
||||||
export type Program = Ins[];
|
export type Program = Ins[];
|
||||||
|
|
||||||
|
export type Ops = typeof Ops;
|
||||||
export const Ops = {
|
export const Ops = {
|
||||||
Nop: 0,
|
Nop: 0,
|
||||||
PushNull: 1,
|
PushNull: 1,
|
||||||
@ -28,4 +29,3 @@ export const Ops = {
|
|||||||
Xor: 23,
|
Xor: 23,
|
||||||
Not: 24,
|
Not: 24,
|
||||||
} as const;
|
} as const;
|
||||||
export type Ops = typeof Ops;
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
import { Program } from "./arch";
|
|
||||||
|
|
||||||
export class VM {
|
|
||||||
public constructor(private program: Program) {}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user