mirror of
https://github.com/cc65/cc65.git
synced 2026-01-22 17:16:21 +00:00
code page
This commit is contained in:
@@ -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);
|
||||
|
||||
7
libsrc/rp6502/code_page.c
Normal file
7
libsrc/rp6502/code_page.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <rp6502.h>
|
||||
|
||||
int __fastcall__ code_page (int cp)
|
||||
{
|
||||
ria_set_ax (cp);
|
||||
return ria_call_int (RIA_OP_CODE_PAGE);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
#include <rp6502.h>
|
||||
|
||||
int __fastcall__ codepage (int cp)
|
||||
{
|
||||
ria_set_ax (cp);
|
||||
return ria_call_int (RIA_OP_CODEPAGE);
|
||||
}
|
||||
Reference in New Issue
Block a user