Skip to content

Commit

Permalink
Implement BIOS open bus behaviour (not tested), use spaces instead of…
Browse files Browse the repository at this point in the history
… tabs
  • Loading branch information
gdkchan committed Jan 7, 2017
1 parent fc2f030 commit 8d9976b
Show file tree
Hide file tree
Showing 12 changed files with 2,865 additions and 2,855 deletions.
3,550 changes: 1,777 additions & 1,773 deletions arm.c

Large diffs are not rendered by default.

108 changes: 54 additions & 54 deletions arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,63 +41,63 @@
#define ARM_VEC_FIQ 0x1c //Fast IRQ

typedef union {
int32_t w;

struct {
int16_t lo;
int16_t hi;
} h;

struct {
int8_t b0;
int8_t b1;
int8_t b2;
int8_t b3;
} b;
int32_t w;

struct {
int16_t lo;
int16_t hi;
} h;

struct {
int8_t b0;
int8_t b1;
int8_t b2;
int8_t b3;
} b;
} arm_word;

typedef struct {
uint32_t r[16];

uint32_t r8_usr;
uint32_t r9_usr;
uint32_t r10_usr;
uint32_t r11_usr;
uint32_t r12_usr;
uint32_t r13_usr;
uint32_t r14_usr;

uint32_t r8_fiq;
uint32_t r9_fiq;
uint32_t r10_fiq;
uint32_t r11_fiq;
uint32_t r12_fiq;
uint32_t r13_fiq;
uint32_t r14_fiq;

uint32_t r13_irq;
uint32_t r14_irq;

uint32_t r13_svc;
uint32_t r14_svc;

uint32_t r13_mon;
uint32_t r14_mon;

uint32_t r13_abt;
uint32_t r14_abt;

uint32_t r13_und;
uint32_t r14_und;

uint32_t cpsr;

uint32_t spsr_fiq;
uint32_t spsr_irq;
uint32_t spsr_svc;
uint32_t spsr_abt;
uint32_t spsr_und;
uint32_t spsr_mon;
uint32_t r[16];

uint32_t r8_usr;
uint32_t r9_usr;
uint32_t r10_usr;
uint32_t r11_usr;
uint32_t r12_usr;
uint32_t r13_usr;
uint32_t r14_usr;

uint32_t r8_fiq;
uint32_t r9_fiq;
uint32_t r10_fiq;
uint32_t r11_fiq;
uint32_t r12_fiq;
uint32_t r13_fiq;
uint32_t r14_fiq;

uint32_t r13_irq;
uint32_t r14_irq;

uint32_t r13_svc;
uint32_t r14_svc;

uint32_t r13_mon;
uint32_t r14_mon;

uint32_t r13_abt;
uint32_t r14_abt;

uint32_t r13_und;
uint32_t r14_und;

uint32_t cpsr;

uint32_t spsr_fiq;
uint32_t spsr_irq;
uint32_t spsr_svc;
uint32_t spsr_abt;
uint32_t spsr_und;
uint32_t spsr_mon;
} arm_regs_t;

arm_regs_t arm_r;
Expand Down
Loading

0 comments on commit 8d9976b

Please sign in to comment.