Search
lxdream.org :: lxdream/src/aica/armcore.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/armcore.c
changeset 2:42349f6ea216
next5:d85c2e81ce2d
author nkeynes
date Sat Aug 21 06:15:49 2004 +0000 (16 years ago)
permissions -rw-r--r--
last change Commit changes into cvs
view annotate diff log raw
     2 #include "armcore.h"
     4 struct arm_registers armr;
     6 /* NB: The arm (one assumes) has a different memory map, but for the meantime... */
     8 #define MEM_READ_BYTE( addr ) mem_read_byte(addr)
     9 #define MEM_READ_WORD( addr ) mem_read_word(addr)
    10 #define MEM_READ_LONG( addr ) mem_read_long(addr)
    11 #define MEM_WRITE_BYTE( addr, val ) mem_write_byte(addr, val)
    12 #define MEM_WRITE_WORD( addr, val ) mem_write_word(addr, val)
    13 #define MEM_WRITE_LONG( addr, val ) mem_write_long(addr, val)
    15 #define PC armr.r[15];
    17 void arm_execute_instruction( void ) 
    18 {
    19   uint32_t ir = MEM_READ_LONG(PC);
    21 #define COND(ir) (ir>>28)
    24 }
    26 void arm_execute_thumb_instruction( void )
    27 {
    31 }
.