Replace disam.h with opcodes{h,c}
[emu8051.git] / src / common / cpu8051.h
index 430e00e..ae17ead 100644 (file)
@@ -4,19 +4,7 @@
  * Copyright (C) 1999 Jonathan St-AndrĂ©
  * Copyright (C) 1999 Hugo Villeneuve <hugo@hugovil.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This file is released under the GPLv2
  */
 
 #ifndef CPU8051_H
@@ -57,66 +45,42 @@ struct cpu8051_t {
 _SCOPE_ struct cpu8051_t cpu8051;
 
 int
-IsBreakpoint(unsigned int Address);
-
-int
-IsStoppoint(unsigned int address);
+breakpoint_is_defined(unsigned int address);
 
 void
-ShowBreakpoints(void);
+breakpoints_show(void);
 
 void
-SetBreakpoint(unsigned int Address);
+breakpoint_set(unsigned int address);
 
 void
-ClearBreakpoint(unsigned int Address);
+breakpoint_clr(unsigned int address);
 
 void
-ClearAllBreakpoints(void);
+breakpoints_clr_all(void);
 
 void
-ToggleBreakpoint(unsigned int Address);
+breakpoint_toggle(unsigned int address);
 
 void
 cpu8051_init(void);
 
-void
-cpu8051_Exec(void);
+int
+cpu8051_exec(void);
 
 int
 cpu8051_run(int instr_count, int (*interface_stop)(void));
 
 void
-cpu8051_Reset(void);
-
-void
-cpu8051_WriteD(unsigned int Address, unsigned char Value);
-
-void
-cpu8051_WriteI(unsigned int Address, unsigned char Value);
-
-void
-cpu8051_WriteB(uint8_t bit_address, uint8_t value);
-
-unsigned char
-cpu8051_ReadD(unsigned int Address);
-
-unsigned char
-cpu8051_ReadI(unsigned int Address);
-
-unsigned char
-cpu8051_ReadB(uint8_t bit_address);
+cpu8051_reset(void);
 
 int
-cpu8051_get_instruction_size(unsigned char opcode);
-
-void
-cpu8051_disasm_mnemonic(unsigned char OpCode, char *buf);
+cpu8051_disasm_mnemonic(unsigned char opcode, char *buf);
 
 void
 cpu8051_disasm_args(unsigned int address, char *buf);
 
 int
-cpu8051_Disasm(unsigned int Address, char *Text);
+cpu8051_disasm(unsigned int address, char *text);
 
 #endif /* CPU8051_H */