From 9b54be41dacc46bd4dc6eec2183965a4b189fddb Mon Sep 17 00:00:00 2001 From: rumbledethumps <16963588+rumbledethumps@users.noreply.github.com> Date: Mon, 20 Oct 2025 22:53:42 -0700 Subject: [PATCH] code page --- include/rp6502.h | 4 ++-- libsrc/rp6502/code_page.c | 7 +++++++ libsrc/rp6502/codepage.c | 7 ------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 libsrc/rp6502/code_page.c delete mode 100644 libsrc/rp6502/codepage.c diff --git a/include/rp6502.h b/include/rp6502.h index b029789b8..ceb8f2a52 100644 --- a/include/rp6502.h +++ b/include/rp6502.h @@ -92,7 +92,7 @@ long __fastcall__ ria_call_long (unsigned char op); #define RIA_OP_ZXSTACK 0x00 #define RIA_OP_XREG 0x01 #define RIA_OP_PHI2 0x02 -#define RIA_OP_CODEPAGE 0x03 +#define RIA_OP_CODE_PAGE 0x03 #define RIA_OP_LRAND 0x04 #define RIA_OP_STDIN_OPT 0x05 #define RIA_OP_ERRNO_OPT 0x06 @@ -147,7 +147,7 @@ int __cdecl__ xregn (char device, char channel, unsigned char address, unsigned ...); int __cdecl__ xreg (char device, char channel, unsigned char address, ...); int __fastcall__ phi2 (void); -int __fastcall__ codepage (int); +int __fastcall__ code_page (int); long __fastcall__ lrand (void); int __fastcall__ stdin_opt (unsigned long ctrl_bits, unsigned char str_length); int __fastcall__ read_xstack (void* buf, unsigned count, int fildes); diff --git a/libsrc/rp6502/code_page.c b/libsrc/rp6502/code_page.c new file mode 100644 index 000000000..b7baff27b --- /dev/null +++ b/libsrc/rp6502/code_page.c @@ -0,0 +1,7 @@ +#include + +int __fastcall__ code_page (int cp) +{ + ria_set_ax (cp); + return ria_call_int (RIA_OP_CODE_PAGE); +} diff --git a/libsrc/rp6502/codepage.c b/libsrc/rp6502/codepage.c deleted file mode 100644 index d6c176347..000000000 --- a/libsrc/rp6502/codepage.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int __fastcall__ codepage (int cp) -{ - ria_set_ax (cp); - return ria_call_int (RIA_OP_CODEPAGE); -}