apple2ix/Apple2Mac/Apple2MacTests/CPUTestAppDelegate.m

39 lines
608 B
Mathematica
Raw Normal View History

//
2014-10-11 02:14:46 +00:00
// CPUTestAppDelegate.m
// Apple2Mac
//
// Created by Aaron Culliney on 6/21/14.
// Copyright (c) 2014 deadc0de.org. All rights reserved.
//
2014-10-11 02:14:46 +00:00
#import "CPUTestAppDelegate.h"
#import "common.h"
extern void c_initialize_firsttime(void);
2014-10-11 02:14:46 +00:00
@implementation CPUTestAppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
[self testCPU];
}
extern int test_cpu(int, char **);
- (void)testCPU
{
char *argv[] = {
"-f",
NULL
};
int argc = 0;
for (char **p = &argv[0]; *p != NULL; p++) {
++argc;
}
2014-10-11 02:14:46 +00:00
test_cpu(argc, argv);
}
@end