From 3973e87219db9412e0bb9f3863f52588e8d30b76 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 23 Aug 2020 11:07:50 +0200 Subject: [PATCH] ARM: Add missing instruction. * lib/arm-mes/arm.M1: Add missing define. --- lib/arm-mes/arm.M1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/arm-mes/arm.M1 b/lib/arm-mes/arm.M1 index ad3b96f8..9bf19126 100644 --- a/lib/arm-mes/arm.M1 +++ b/lib/arm-mes/arm.M1 @@ -1,5 +1,5 @@ ### GNU Mes --- Maxwell Equations of Software -### Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen +### Copyright © 2017,2018,2020 Jan (janneke) Nieuwenhuizen ### Copyright © 2019,2020 Danny Milosavljevic ### ### This file is part of GNU Mes. @@ -229,6 +229,11 @@ DEFINE strh___%r2,(%r2) b020c2e1 # strh r2, [r2] DEFINE strh___%r3,(%r3) b030c3e1 # strh r3, [r3] DEFINE strh___%r4,(%r4) b040c4e1 # strh r4, [r4] +# tcc +DEFINE ldrsb__%r2,(%r0) d020d0e1 # ldrsb r2, [r0] +DEFINE strh___%r2,(%r1) b020c1e1 # strh r2, [r1] +DEFINE strb___%r2,(%r1) 0020c1e5 # strb r2, [r1] + # There's a single instruction that does it--but I don't know how to encode it. # mov %r9, immediate # add %r9, %r9, %fp