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

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

export { Loader };