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