Mercurial > repos > blastem
comparison ztestrun.c @ 659:759c38bf97f8
Minor Z80 core cleanup
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 01 Jan 2015 20:26:22 -0800 |
parents | f838bc0aeb7c |
children | 16e5dfdb67b5 |
comparison
equal
deleted
inserted
replaced
658:6aa29ac33f1a | 659:759c38bf97f8 |
---|---|
51 fseek(f, 0, SEEK_END); | 51 fseek(f, 0, SEEK_END); |
52 filesize = ftell(f); | 52 filesize = ftell(f); |
53 fseek(f, 0, SEEK_SET); | 53 fseek(f, 0, SEEK_SET); |
54 fread(z80_ram, 1, filesize < sizeof(z80_ram) ? filesize : sizeof(z80_ram), f); | 54 fread(z80_ram, 1, filesize < sizeof(z80_ram) ? filesize : sizeof(z80_ram), f); |
55 fclose(f); | 55 fclose(f); |
56 init_x86_z80_opts(&opts, z80_map, 2); | 56 init_z80_opts(&opts, z80_map, 2); |
57 init_z80_context(&context, &opts); | 57 init_z80_context(&context, &opts); |
58 //Z80 RAM | 58 //Z80 RAM |
59 context.mem_pointers[0] = z80_ram; | 59 context.mem_pointers[0] = z80_ram; |
60 context.sync_cycle = context.target_cycle = 1000; | 60 context.sync_cycle = context.target_cycle = 1000; |
61 context.int_cycle = CYCLE_NEVER; | 61 context.int_cycle = CYCLE_NEVER; |