mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-10-19 06:25:44 +00:00
39 lines
608 B
Objective-C
39 lines
608 B
Objective-C
//
|
|
// CPUTestAppDelegate.m
|
|
// Apple2Mac
|
|
//
|
|
// Created by Aaron Culliney on 6/21/14.
|
|
// Copyright (c) 2014 deadc0de.org. All rights reserved.
|
|
//
|
|
|
|
#import "CPUTestAppDelegate.h"
|
|
|
|
#import "common.h"
|
|
|
|
extern void c_initialize_firsttime(void);
|
|
|
|
|
|
@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;
|
|
}
|
|
test_cpu(argc, argv);
|
|
}
|
|
|
|
@end
|