Fix really stupid bug.
This commit is contained in:
parent
3989d0f4ee
commit
e035ff6685
1 changed files with 10 additions and 9 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
|
|
@ -78,10 +79,10 @@ main(int argc, char **argv)
|
|||
die("Usage: testbios <file> <size> <base> <initial IP> <initial CS>");
|
||||
|
||||
filename = argv[1];
|
||||
size = strtol(argv[2]);
|
||||
base = strtol(argv[3]);
|
||||
initialip = strtol(argv[4]);
|
||||
initialcs = strtol(argv[5]);
|
||||
size = strtol(argv[2], 0, 0);
|
||||
base = strtol(argv[3], 0, 0);
|
||||
initialip = strtol(argv[4], 0, 0);
|
||||
initialcs = strtol(argv[5], 0, 0);
|
||||
|
||||
current = &p;
|
||||
X86EMU_setMemBase(biosmem, sizeof(biosmem));
|
||||
|
|
@ -107,12 +108,12 @@ main(int argc, char **argv)
|
|||
// M.x86.saved_cs = 0;
|
||||
// M.x86.saved_ip = 0;
|
||||
X86EMU_trace_on();
|
||||
x86emu_single_step ();
|
||||
// x86emu_single_step ();
|
||||
X86EMU_exec();
|
||||
x86emu_single_step ();
|
||||
x86emu_single_step ();
|
||||
x86emu_single_step ();
|
||||
x86emu_single_step ();
|
||||
// x86emu_single_step ();
|
||||
//x86emu_single_step ();
|
||||
//x86emu_single_step ();
|
||||
//x86emu_single_step ();
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue