From 953ecb2013e56f9d7273d224cccba340c8e4ff77 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 28 Nov 2011 03:37:12 +0000 Subject: [PATCH] Imported the official names for the registers --- src/arch/yasep.reg | 16 ++++++++++++++++ test/yasep.S | 24 ++++++++++++------------ 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/src/arch/yasep.reg b/src/arch/yasep.reg index b190c37..a3bc0b5 100644 --- a/src/arch/yasep.reg +++ b/src/arch/yasep.reg @@ -1,3 +1,19 @@ +REG(npc, 16, 0x00) +REG(r1, 16, 0x01) +REG(r2, 16, 0x02) +REG(r3, 16, 0x03) +REG(r4, 16, 0x04) +REG(r5, 16, 0x05) +REG(d5, 16, 0x06) +REG(a5, 16, 0x07) +REG(d4, 16, 0x08) +REG(a4, 16, 0x09) +REG(d3, 16, 0x0a) +REG(a3, 16, 0x0b) +REG(d2, 16, 0x0c) +REG(a2, 16, 0x0d) +REG(d1, 16, 0x0e) +REG(a1, 16, 0x0f) REG(r0, 16, 0x00) REG(r1, 16, 0x01) REG(r2, 16, 0x02) diff --git a/test/yasep.S b/test/yasep.S index b0d371a..3b04af7 100644 --- a/test/yasep.S +++ b/test/yasep.S @@ -7,20 +7,20 @@ andn $0x0c, %r1 andn %r4, %r5 cmps $0x0b, %r1 - cmps %r0, %r1 + cmps %r6, %r7 cmpu $0x0a, %r1 - cmpu %r0, %r1 + cmpu %r8, %r9 get $0x09, %r1 - get %r0, %r1 - lsb %r0, %r1 - lsh %r0, %r1 - lzb %r0, %r1 - lzh %r0, %r1 - mov $0x04, %r1 - mov %r0, %r1 - mul8h $0x03, %r1 - mul8h %r0, %r1 - mul8l $0x02, %r1 + get %r10, %r11 + lsb %r12, %r13 + lsh %r14, %r15 + lzb %npc, %d5 + lzh %a5, %d4 + mov $0x04, %a4 + mov %d3, %a3 + mul8h $0x03, %d2 + mul8h %a2, %d1 + mul8l $0x02, %a1 mul8l %r0, %r1 muli $0x01, %r1 muli %r0, %r1