mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-27 05:49:24 +00:00
8d9b48912e
Note that memory _is_ now managed in apple2, and _not_ in mos6502.
22 lines
288 B
C
22 lines
288 B
C
#ifndef _MOS6502_TESTS_H
|
|
#define _MOS6502_TESTS_H
|
|
|
|
static mos6502 *cpu;
|
|
static vm_segment *mem;
|
|
|
|
static void
|
|
setup()
|
|
{
|
|
mem = vm_segment_create(MOS6502_MEMSIZE);
|
|
cpu = mos6502_create(mem, mem);
|
|
}
|
|
|
|
static void
|
|
teardown()
|
|
{
|
|
mos6502_free(cpu);
|
|
vm_segment_free(mem);
|
|
}
|
|
|
|
#endif
|