mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
23 lines
492 B
TypeScript
23 lines
492 B
TypeScript
|
import { base64_encode } from 'js/base64';
|
||
|
import { JSONDisk } from 'js/formats/types';
|
||
|
|
||
|
export const testDisk: JSONDisk = {
|
||
|
name: 'Test Disk',
|
||
|
disk: 'Front',
|
||
|
category: 'Test',
|
||
|
type: 'dsk',
|
||
|
encoding: 'base64',
|
||
|
data: []
|
||
|
};
|
||
|
|
||
|
const sector = new Uint8Array(256);
|
||
|
sector.fill(0);
|
||
|
|
||
|
for (let idx = 0; idx < 35; idx++) {
|
||
|
const track: string[] = [];
|
||
|
for (let jdx = 0; jdx < 16; jdx++) {
|
||
|
track.push(base64_encode(sector));
|
||
|
}
|
||
|
testDisk.data.push(track);
|
||
|
}
|