From fd53ef569512f657fef6ae6bdca51bfea777478d Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 5 Apr 2025 15:51:22 +0300 Subject: uuh i forgor --- runtime.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime.ts') diff --git a/runtime.ts b/runtime.ts index a7bf146..5bfafef 100644 --- a/runtime.ts +++ b/runtime.ts @@ -2,7 +2,9 @@ import The65c02, { BitField, Pin } from "./65c02.ts"; import matrix from "./opcode_matrix.json" with { type: "json" }; import { parseArgs } from "jsr:@std/cli/parse-args"; -const debug = Deno.args.includes('-d') +const args = parseArgs(Deno.args) + +const debug = args.d // the thing used for ram const ram = new Uint8Array(2**16); @@ -27,8 +29,6 @@ await cpu.loadInstructions() // test cpu.stackPointer.set(0xFF) -const args = parseArgs(Deno.args) - const binStart = parseInt(args.b ?? args.binStart ?? '8000', 16) const resVec = parseInt(args.s ?? args.start ?? binStart.toString(16), 16) -- cgit 1.4.1-2-gfad0