mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
ba203498f4
* Clean up remaining Javascript * ProDOS to TypeScript. * NSC to TypeScript
34 lines
604 B
TypeScript
34 lines
604 B
TypeScript
import { VDH } from './vdh';
|
|
import { BitMap } from './bit_map';
|
|
import { BlockDisk } from '../types';
|
|
|
|
export class ProDOSVolume {
|
|
_vdh: VDH;
|
|
_bitMap: BitMap;
|
|
|
|
constructor(private _disk: BlockDisk) {}
|
|
|
|
disk() {
|
|
return this._disk;
|
|
}
|
|
|
|
blocks() {
|
|
return this._disk.blocks;
|
|
}
|
|
|
|
vdh() {
|
|
if (!this._vdh) {
|
|
this._vdh = new VDH(this);
|
|
this._vdh.read();
|
|
}
|
|
return this._vdh;
|
|
}
|
|
|
|
bitMap() {
|
|
if (!this._bitMap) {
|
|
this._bitMap = new BitMap(this);
|
|
}
|
|
return this._bitMap;
|
|
}
|
|
}
|