Search
lxdream.org :: lxdream/src/sh4/sh4dasm.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4dasm.c
changeset 30:89b30313d757
prev14:fc481a638848
next43:0cf3e339cc59
author nkeynes
date Sun Dec 25 05:57:00 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Change timeslice to nanoseconds (was microseconds)
Generize single step (now steps through active CPU)
Add lots of header blocks
file annotate diff log raw
1.1 --- a/src/sh4/sh4dasm.c Mon Dec 12 10:37:41 2005 +0000
1.2 +++ b/src/sh4/sh4dasm.c Sun Dec 25 05:57:00 2005 +0000
1.3 @@ -1,3 +1,21 @@
1.4 +/**
1.5 + * $Id: sh4dasm.c,v 1.7 2005-12-25 05:57:00 nkeynes Exp $
1.6 + *
1.7 + * SH4 CPU definition and disassembly functions
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 #include "sh4core.h"
1.23 #include "sh4dasm.h"
1.24 #include "mem.h"
1.25 @@ -25,9 +43,9 @@
1.26
1.27
1.28 const struct cpu_desc_struct sh4_cpu_desc =
1.29 - { "SH4", sh4_disasm_instruction, 2,
1.30 + { "SH4", sh4_disasm_instruction, sh4_execute_instruction, mem_has_page, 2,
1.31 (char *)&sh4r, sizeof(sh4r), sh4_reg_map,
1.32 - &sh4r.pc, &sh4r.icount, mem_has_page };
1.33 + &sh4r.pc, &sh4r.icount };
1.34
1.35 uint32_t sh4_disasm_instruction( uint32_t pc, char *buf, int len, char *opcode )
1.36 {
.