@moonbase-machines/c64 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/moonbase-c64.js +2 -2
- package/dist/moonbase-c64.js.map +3 -3
- package/package.json +3 -3
- package/start.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase-machines/c64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "A Commodore 64 as far as the games use it: the VIC-II, the SID, a 1541, a printer, and Moonbase's own KERNAL and BASIC in place of Commodore's ROMs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"./*": "./*"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@moonbase-machines/mos6502": "0.
|
|
14
|
-
"@moonbase-machines/charset": "0.
|
|
13
|
+
"@moonbase-machines/mos6502": "0.8.0",
|
|
14
|
+
"@moonbase-machines/charset": "0.8.0"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"prepack": "node ../../tools/package-files.mjs c64"
|
package/start.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// kept as everyone else keeps them, to compare
|
|
7
7
|
// moonbase-petscii moonbase's, with Commodore's character ROM, where this machine has it
|
|
8
8
|
//
|
|
9
|
-
// await c64Roms(choice,
|
|
9
|
+
// await c64Roms(choice, load) the roms for new C64(game, roms), or null where Commodore's
|
|
10
10
|
// are asked for and cannot be had; load(name) gives a ROM's
|
|
11
11
|
// bytes (<name>.bin), or throws where it is not there
|
|
12
12
|
// typed(m, game) what is typed once BASIC is ready: LOAD"<start>",8,1,
|
|
@@ -17,7 +17,7 @@ import { standIn } from './rom.js';
|
|
|
17
17
|
|
|
18
18
|
export const ROM_CHOICES = [null, 'commodore', 'moonbase-petscii'];
|
|
19
19
|
|
|
20
|
-
export async function c64Roms(choice,
|
|
20
|
+
export async function c64Roms(choice, load) {
|
|
21
21
|
if (choice !== 'commodore' && choice !== 'moonbase-petscii') return standIn();
|
|
22
22
|
try {
|
|
23
23
|
if (choice === 'moonbase-petscii') return { ...standIn(), chargen: await load('chargen') };
|