URL
https://opencores.org/ocsvn/amber/amber/trunk
[/] [amber/] [trunk/] [hw/] [tests/] [irq_stm.S] - Diff between revs 17 and 35
Show entire file |
Details |
Blame |
View Log
Rev 17 |
Rev 35 |
Line 41... |
Line 41... |
// from http://www.opencores.org/lgpl.shtml //
|
// from http://www.opencores.org/lgpl.shtml //
|
// //
|
// //
|
*****************************************************************/
|
*****************************************************************/
|
|
|
#include "amber_registers.h"
|
#include "amber_registers.h"
|
|
#include "amber_macros.h"
|
|
|
.section .text
|
.section .text
|
.globl main
|
.globl main
|
main:
|
main:
|
|
|
Line 128... |
Line 129... |
|
|
@ Follow the r7 address pointer and make
|
@ Follow the r7 address pointer and make
|
@ sure it decrements correctly on each
|
@ sure it decrements correctly on each
|
@ iteration of the loop
|
@ iteration of the loop
|
sub r13, r13, #16
|
sub r13, r13, #16
|
cmp r7, r13
|
compare r7, r13, __LINE__
|
movne r10, #100
|
|
bne testfail
|
|
|
|
subs r2, r2, #1
|
subs r2, r2, #1
|
beq testpass
|
beq testpass
|
b loop
|
b loop
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.