X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=OpArith.cpp;h=09517b8f2dd95b1bcef141dca37ba6c1f9d7d53e;hb=refs%2Fheads%2Fmaster;hp=96c7e0d7930457164166980ce24e0f531bb260a4;hpb=ee2d42257a2d52072f6b163f8ec279503241e9de;p=cyclone68000.git diff --git a/OpArith.cpp b/OpArith.cpp index 96c7e0d..09517b8 100644 --- a/OpArith.cpp +++ b/OpArith.cpp @@ -425,7 +425,7 @@ int OpAbcd(int op) ot(" add r1,r1,r0\n"); ot(" add r1,r1,r6\n"); ot(" mov r12,r1\n"); - ot(" addhi r12,#6 ;@ Decimal adjust units\n"); + ot(" addhi r12,r12,#6 ;@ Decimal adjust units\n"); ot(" tst r1,#0x80\n"); ot(" orreq r10,r10,#0x10000000 ;@ Undefined V behavior\n"); ot(" cmp r12,#0x9f\n"); @@ -452,7 +452,7 @@ int OpAbcd(int op) ot(" cmp r1,r12\n"); ot(" orrlt r10,r10,#0x20000000 ;@ C\n"); ot(" cmp r1,#0xff\n"); - ot(" addhi r1,#0xa0\n"); + ot(" addhi r1,r1,#0xa0\n"); ot(" sub r12,r1,r12\n"); ot(" movs r0,r12,lsl #24\n"); ot(" bicmi r10,r10,#0x10000000 ;@ Undefined V behavior part II\n");