From 48f22b2f32a91dfbbebaa81186684d42e43b81b8 Mon Sep 17 00:00:00 2001 From: Michael Kohn Date: Wed, 25 Dec 2024 07:30:33 -0600 Subject: [PATCH] 8051: Adding some start code for a251 instructions. --- table/8051.cpp | 9 ++++++++- table/8051.h | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/table/8051.cpp b/table/8051.cpp index 9b313988..c5196856 100644 --- a/table/8051.cpp +++ b/table/8051.cpp @@ -5,7 +5,7 @@ * Web: https://www.mikekohn.net/ * License: GPLv3 * - * Copyright 2010-2022 by Michael Kohn + * Copyright 2010-2024 by Michael Kohn * */ @@ -273,3 +273,10 @@ struct _table_8051 table_8051[] = { "mov", { OP_REG, OP_A, OP_NONE }, 7 }, // 0xff }; +struct _table_8051_a251 table_8051_a251[] = +{ + { "jsle", 0x08, OP_RELADDR }, +// A-63 + { NULL, 0, 0 } +}; + diff --git a/table/8051.h b/table/8051.h index ee4f8196..314054b3 100644 --- a/table/8051.h +++ b/table/8051.h @@ -43,7 +43,15 @@ struct _table_8051 int8_t range; // range of register or page (r0, r1, r2 etc) }; +struct _table_8051_a251 +{ + const char *name; + uint8_t opcode; + uint8_t type; +}; + extern struct _table_8051 table_8051[]; +extern struct _table_8051_a251 table_8051_a251[]; #endif