1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00
cc65/libsrc/cbm/cbm_save.c
mrintsch b2e0ed603e cbm_write() added
changed/added some comments
all cbm_* IO functions are using _oserror now


git-svn-id: svn://svn.cc65.org/cc65/trunk@682 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-03-30 18:18:40 +00:00

23 lines
563 B
C

/*
* Marc 'BlackJack' Rintsch, 11.03.2001
*
* unsigned char cbm_save(const char* name,
* char device,
* unsigned int start,
* unsigned int end);
*/
#include <cbm.h>
extern unsigned char _oserror;
/* saves a memory area from start to end-1 to a file.
*/
unsigned char cbm_save(const char* name, unsigned char device,
unsigned int start, unsigned int end)
{
cbm_k_setlfs(0, device, 0);
cbm_k_setnam(name);
return _oserror = cbm_k_save(start, end);
}