-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented all load/store instructions. Resolves Issue #4. FIXED a b…
…ug in MOVT.
- Loading branch information
Showing
32 changed files
with
265 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
ldrb r31, [r2] ; loads byte | ||
ldr r0, [r2, #1] ; loads word | ||
mov r1, %low(0x00100000) | ||
movt r1, %high(0x00100000) | ||
ldr r0, [r1, #1] ; loads word | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
mov r1, %low(0x00100000) | ||
movt r1, %high(0x00100000) | ||
ldr r0, [r1], #1 ; loads double, updates r2 | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
ldrb r31, [r2, r1] ; loads byte | ||
ldr r0, [r2, r1] ; loads word | ||
mov r1, %low(0x00100004) | ||
movt r1, %high(0x00100004) | ||
mov r2, #0 | ||
ldr r0, [r1,+r2] ; loads word | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
mov r1, %low(0x80002) | ||
movt r1, %high(0x80002) | ||
mov r2, %low(0x80002) | ||
movt r2, %high(0x80002) | ||
ldr r0, [r1], r2 ; loads word, updates r1 | ||
TEAR_DOWN |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
strb r31, [r2, #1] ;stores byte to addr in r2 | ||
str r0, [r2, #0x4] ;stores word to addr in r2 | ||
mov r0, %low(0xFFFFFFFF) | ||
movt r0, %high(0xFFFFFFFF) | ||
mov r1, %low(0x00100000) | ||
movt r1, %high(0x00100000) | ||
str r0, [r1, #0x1] | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
mov r0, %low(0xFFFFFFFF) | ||
movt r0, %high(0xFFFFFFFF) | ||
mov r1, %low(0x00100000) | ||
movt r1, %high(0x00100000) | ||
str r0, [r1], #1 | ||
TEAR_DOWN |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
strb r31, [r2, r1] ;stores byte to addr in r2 | ||
str r0, [r2, r1] ;stores word to addr in r2 | ||
mov r0, %low(0xFFFFFFFF) | ||
movt r0, %high(0xFFFFFFFF) | ||
mov r1, %low(0x00100004) | ||
movt r1, %high(0x00100004) | ||
mov r2, #0 | ||
str r0, [r1, +r2] ; stores word to addr in r0 | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#include "epiphany-macros.h" | ||
SET_UP | ||
strh r31, [r2], r1 ; stores short to addr in r2 | ||
strd r0, [r2], r3 ; stores double to addr in r2 | ||
mov r0, %low(0xFFFFFFFF) | ||
movt r0, %high(0xFFFFFFFF) | ||
mov r1, %low(0x00100000) | ||
movt r1, %high(0x00100000) | ||
mov r2, #4 | ||
str r0, [r1], r2 | ||
TEAR_DOWN |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.