mirror of
https://github.com/pevans/erc-c.git
synced 2024-06-28 16:29:30 +00:00
21 lines
232 B
C
21 lines
232 B
C
|
/*
|
||
|
* apple2.c
|
||
|
*/
|
||
|
|
||
|
#include "apple2.h"
|
||
|
|
||
|
apple2 *
|
||
|
apple2_create()
|
||
|
{
|
||
|
apple2 *mach;
|
||
|
|
||
|
mach = malloc(sizeof(apple2));
|
||
|
if (mach == NULL) {
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
mach->cpu = mos6502_create();
|
||
|
|
||
|
return mach;
|
||
|
}
|