1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-03 11:29:42 +00:00
cc65/libsrc/rp6502/write_xstack.c

12 lines
270 B
C
Raw Normal View History

2023-11-17 02:46:16 +00:00
#include <rp6502.h>
2023-11-17 19:08:51 +00:00
int __fastcall__ write_xstack (const void* buf, unsigned count, int fildes)
2023-11-17 02:46:16 +00:00
{
unsigned i;
2023-11-17 19:08:51 +00:00
for (i = count; i;) {
ria_push_char (((char*)buf)[--i]);
2023-11-17 02:46:16 +00:00
}
2023-11-17 19:08:51 +00:00
ria_set_ax (fildes);
return ria_call_int_errno (RIA_OP_WRITE_XSTACK);
2023-11-17 02:46:16 +00:00
}