From 910ab2f011dfe6ba338dff885bd50a120b4d6b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 17 Nov 2016 16:37:02 +0000 Subject: [PATCH] fix comments --- BaS_gcc/include/x86emu.h | 16 ++++++++-------- BaS_gcc/x86emu/x86biosemu.c | 6 +++++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/BaS_gcc/include/x86emu.h b/BaS_gcc/include/x86emu.h index 1374acf..85fd77b 100644 --- a/BaS_gcc/include/x86emu.h +++ b/BaS_gcc/include/x86emu.h @@ -122,9 +122,9 @@ struct X86EMU uint64_t cur_cycles; - unsigned int cur_mod:2; - unsigned int cur_rl:3; - unsigned int cur_rh:3; + unsigned int cur_mod:2; + unsigned int cur_rl:3; + unsigned int cur_rh:3; uint32_t cur_offset; uint8_t (*emu_rdb)(struct X86EMU *, uint32_t addr); @@ -145,14 +145,14 @@ struct X86EMU }; -void X86EMU_init_default(struct X86EMU *); +void X86EMU_init_default(struct X86EMU *); /* decode.c */ -void X86EMU_exec(struct X86EMU *); -void X86EMU_exec_call(struct X86EMU *, uint16_t, uint16_t); -void X86EMU_exec_intr(struct X86EMU *, uint8_t); -void X86EMU_halt_sys(struct X86EMU *); +void X86EMU_exec(struct X86EMU *); +void X86EMU_exec_call(struct X86EMU *, uint16_t, uint16_t); +void X86EMU_exec_intr(struct X86EMU *, uint8_t); +void X86EMU_halt_sys(struct X86EMU *); #endif /* __X86EMU_X86EMU_H */ diff --git a/BaS_gcc/x86emu/x86biosemu.c b/BaS_gcc/x86emu/x86biosemu.c index 7d7953e..167ad24 100644 --- a/BaS_gcc/x86emu/x86biosemu.c +++ b/BaS_gcc/x86emu/x86biosemu.c @@ -379,6 +379,7 @@ void run_bios(struct radeonfb_info *rinfo) initialcs = (addr & 0xf0000) >> 4; initialip = (addr + 3) & 0xffff; + dbg("initial CS=0x%x, initial IP=0x%x\r\n", initialcs, initialip); /* * set emulator memory @@ -400,7 +401,10 @@ void run_bios(struct radeonfb_info *rinfo) emu.emu_wrb(&emu, 0xffff7, '/'); emu.emu_wrb(&emu, 0xffffa, '/'); - /* FixME: move PIT init to its own file */ + /* + * FixME: move PIT (programmable interval timer) init to its own file + * do we really need this? - don't think it does anything sensible ... + */ outb(&emu, 0x36, 0x43); outb(&emu, 0x00, 0x40); outb(&emu, 0x00, 0x40);