URL
https://opencores.org/ocsvn/amber/amber/trunk
[/] [amber/] [trunk/] [hw/] [tests/] [and.S] - Diff between revs 83 and 87
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 83 |
Rev 87 |
Line 56... |
Line 56... |
bcc testfail // C flag
|
bcc testfail // C flag
|
|
|
mov r1, #0x0000005a
|
mov r1, #0x0000005a
|
|
|
// should not unset the V flag value
|
// should not unset the V flag value
|
|
// the carry flag is set to the shifter carry out
|
ands r2, r1, #0x00000055
|
ands r2, r1, #0x00000055
|
|
|
// Check the V flag is still set, the Z flag is clear, the C flag
|
// Check the V flag is still set, the Z flag is clear, the C flag
|
// gets cleared, and the N flag gets cleared
|
// is unchanged, and the N flag gets cleared
|
bvc testfail
|
bvc testfail
|
beq testfail
|
beq testfail
|
bcs testfail
|
bcc testfail
|
bmi testfail
|
bmi testfail
|
|
|
tst r2, #0x00000050
|
tst r2, #0x00000050
|
beq testfail
|
beq testfail
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.