From aacd64b2bca57bbcb737c777380084f73b949264 Mon Sep 17 00:00:00 2001 From: Sidney Cadot Date: Sun, 5 Jan 2025 22:29:51 +0100 Subject: [PATCH] Shorteded is_65c02 routine. --- samples/sim65/cpumode_example.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/sim65/cpumode_example.c b/samples/sim65/cpumode_example.c index 87fce36cd..6cc2d0c16 100644 --- a/samples/sim65/cpumode_example.c +++ b/samples/sim65/cpumode_example.c @@ -60,12 +60,12 @@ static bool __fastcall__ is_65c02(void) * warning that can be safely ignored. While no return statement is present, the * return value is correctly loaded into AX by the assembly code. */ - __asm__("ldx #0"); __asm__("sed"); + __asm__("ldx #0"); __asm__("txa"); - __asm__("sbc #28"); - __asm__("asl a"); - __asm__("sbc #28"); + __asm__("sbc #155"); + __asm__("asl"); + __asm__("rol"); __asm__("and #1"); __asm__("cld"); }