/* * Test_005 * * end_ko : infinite_loop * end_ok : Write in R1 the stop address and stop an data * The store in the destination of an jump * start : place an value on 16 bits in a register. Test register with an immediat (sign extension) */ .file "crt0.s" /* .section .vector */ .section .text .align 4 /* ---[ 0x0 : Print a error ]------------------------------------------- */ .org 0x0 _end_ko : _infinite_loop : l.j _infinite_loop l.nop _end_ok : l.movhi r1, hi(_tty) l.ori r1, r1, lo(_tty) l.sw 4(r1), r1 /* stop address */ /* ---[ 0x100: RESET exception ]----------------------------------------- */ .org 0x100 .global _start _start: l.nop l.nop l.movhi r1, hi(0xffffdead) l.ori r1, r1, lo(0xffffdead) l.sfeqi r1, 0xdead l.bf _end_ok l.nop l.j _end_ko l.nop