From 23b8bafbf606d707edc588c26a403d395d0dc1b3 Mon Sep 17 00:00:00 2001 From: rumbledethumps <16963588+rumbledethumps@users.noreply.github.com> Date: Sat, 27 Sep 2025 23:27:02 -0700 Subject: [PATCH] no need to expose errno_opt --- include/rp6502.h | 1 - libsrc/rp6502/errno.s | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/rp6502.h b/include/rp6502.h index 479621395..c443bd8f9 100644 --- a/include/rp6502.h +++ b/include/rp6502.h @@ -120,7 +120,6 @@ int phi2 (void); int codepage (int); long lrand (void); int __fastcall__ stdin_opt (unsigned long ctrl_bits, unsigned char str_length); -int __fastcall__ errno_opt (unsigned char platform); int __fastcall__ read_xstack (void* buf, unsigned count, int fildes); int __fastcall__ read_xram (unsigned buf, unsigned count, int fildes); int __fastcall__ write_xstack (const void* buf, unsigned count, int fildes); diff --git a/libsrc/rp6502/errno.s b/libsrc/rp6502/errno.s index aef978bfa..a9a50afec 100644 --- a/libsrc/rp6502/errno.s +++ b/libsrc/rp6502/errno.s @@ -8,7 +8,7 @@ .include "rp6502.inc" .include "errno.inc" - .export ___errno, _errno_opt + .export ___errno .import _ria_call_int .constructor _errno_opt_constructor @@ -20,9 +20,6 @@ ___errno := RIA_ERRNO ; Request the RIA use cc65 values for RIA_ERRNO _errno_opt_constructor: lda #$01 ; 1 = cc65 - -; int __fastcall__ errno_opt (unsigned char platform); -_errno_opt: sta RIA_A lda #RIA_OP_ERRNO_OPT jmp _ria_call_int