From 562e6237bb58919d800f431cb38de1784efbbe98 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Fri, 4 Apr 2025 10:38:16 +0300 Subject: try to test,,, and fail --- 65c02.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '65c02.ts') diff --git a/65c02.ts b/65c02.ts index fb8f050..9805d50 100644 --- a/65c02.ts +++ b/65c02.ts @@ -191,7 +191,7 @@ export default class The65c02 { /** push stuff onto stack */ push(val: number) { if (this.stackPointer.num() >= 0xFF) - throw 'stack overflow (no, not like the website)'; + console.error('stack overflow (no, not like the website)'); this.stackPointer.increment(); this.io.address.set(0x01FF - this.stackPointer.num()); this.io.data.set(val); @@ -199,7 +199,7 @@ export default class The65c02 { } pop(): number { if (this.stackPointer.num() <= 0) - throw 'stack underflow'; + console.error('stack underflow'); this.io.address.set(0x01FF - this.stackPointer.num()); this.read() this.stackPointer.decrement(); -- cgit 1.4.1-2-gfad0