aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/simulator/loaders/loader.ts
blob: 1b070e3c9fc5e280784ea06ebdddacf9849a8db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { Readable } from 'stream';
import { Isa, SymbTable } from '../../isa';
import { Memory } from '../mem';

interface Loader {
    load(isa: Isa, fp: Readable, mem: Memory): Promise<void>;
    fileExt(): string;
    symbFileExt(): string;
    loadSymb(fp: Readable, symbtable: SymbTable): Promise<void>;
}

export { Loader };