Skip to content

Commit

Permalink
8051: Adding some start code for a251 instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeakohn committed Dec 25, 2024
1 parent efbbdb0 commit 48f22b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion table/8051.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Web: https://www.mikekohn.net/
* License: GPLv3
*
* Copyright 2010-2022 by Michael Kohn
* Copyright 2010-2024 by Michael Kohn
*
*/

Expand Down Expand Up @@ -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 }
};

8 changes: 8 additions & 0 deletions table/8051.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 48f22b2

Please sign in to comment.