summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/include/z180/chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/include/z180/chip.h')
-rw-r--r--nuttx/arch/z80/include/z180/chip.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/nuttx/arch/z80/include/z180/chip.h b/nuttx/arch/z80/include/z180/chip.h
index f2e140a10..22a3cee37 100644
--- a/nuttx/arch/z80/include/z180/chip.h
+++ b/nuttx/arch/z80/include/z180/chip.h
@@ -49,7 +49,7 @@
* Pre-processor Definitions
****************************************************************************/
-/* Bits in the Z80 FLAGS register ***************************************************/
+/* Bits in the Z180 FLAGS register ******************************************/
#define Z180_C_FLAG 0x01 /* Bit 0: Carry flag */
#define Z180_N_FLAG 0x02 /* Bit 1: Add/Subtract flag */
@@ -58,19 +58,7 @@
#define Z180_Z_FLAG 0x40 /* Bit 5: Zero flag */
#define Z180_S_FLAG 0x80 /* Bit 7: Sign flag */
-/* Register access macros ***********************************************************/
-
-#ifndef __ASSEMBLY__
-
-# define getreg8(a) (*(volatile uint8_t *)(a))
-# define putreg8(v,a) (*(volatile uint8_t *)(a) = (v))
-# define getreg16(a) (*(volatile uint16_t *)(a))
-# define putreg16(v,a) (*(volatile uint16_t *)(a) = (v))
-# define getreg32(a) (*(volatile uint32_t *)(a))
-# define putreg32(v,a) (*(volatile uint32_t *)(a) = (v))
-
-#endif
-
+/* Z180 Chip Definitions ****************************************************/
/* Z800180
*
* The 8-bit Z80180 MPU provides the benefits of reduced system costs and