OLD | NEW |
1 /* -*- c -*- */ | 1 /* -*- c -*- */ |
| 2 #include "sysdep.h" |
2 #include <stdio.h> | 3 #include <stdio.h> |
3 #include <stdlib.h> | 4 #include <stdlib.h> |
4 #include <string.h> | 5 #include <string.h> |
5 | |
6 #include "config.h" | |
7 #include "ansidecl.h" | 6 #include "ansidecl.h" |
8 #include "opcode/rl78.h" | 7 #include "opcode/rl78.h" |
9 | 8 |
10 static int trace = 0; | 9 static int trace = 0; |
11 | 10 |
12 typedef struct | 11 typedef struct |
13 { | 12 { |
14 RL78_Opcode_Decoded * rl78; | 13 RL78_Opcode_Decoded * rl78; |
15 int (* getbyte)(void *); | 14 int (* getbyte)(void *); |
16 void * ptr; | 15 void * ptr; |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 /** 1101 0110 mulu x */ | 880 /** 1101 0110 mulu x */ |
882 ID(mulu); | 881 ID(mulu); |
883 | 882 |
884 /*----------------------------------------------------------------------*/ | 883 /*----------------------------------------------------------------------*/ |
885 | 884 |
886 /** 0000 0000 nop */ | 885 /** 0000 0000 nop */ |
887 ID(nop); | 886 ID(nop); |
888 | 887 |
889 /*----------------------------------------------------------------------*/ | 888 /*----------------------------------------------------------------------*/ |
890 | 889 |
| 890 /** 0111 0001 1100 0000 not1 cy */ |
| 891 ID(xor); DCY(); SC(1); |
| 892 |
| 893 /*----------------------------------------------------------------------*/ |
| 894 |
891 /** 1110 0101 oneb %e0%!0 */ | 895 /** 1110 0101 oneb %e0%!0 */ |
892 ID(mov); DM(None, IMMU(2)); SC(1); | 896 ID(mov); DM(None, IMMU(2)); SC(1); |
893 | 897 |
894 /** 1110 00rg oneb %0 */ | 898 /** 1110 00rg oneb %0 */ |
895 ID(mov); DRB(rg); SC(1); | 899 ID(mov); DRB(rg); SC(1); |
896 | 900 |
897 /** 1110 0100 oneb %0 */ | 901 /** 1110 0100 oneb %0 */ |
898 ID(mov); DM(None, SADDR); SC(1); | 902 ID(mov); DM(None, SADDR); SC(1); |
899 | 903 |
900 /*----------------------------------------------------------------------*/ | 904 /*----------------------------------------------------------------------*/ |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 | 1258 |
1255 /** 0111 0001 0bit 0111 xor1 cy, %s1 */ | 1259 /** 0111 0001 0bit 0111 xor1 cy, %s1 */ |
1256 ID(xor); DCY(); SM(None, SADDR); SB(bit); | 1260 ID(xor); DCY(); SM(None, SADDR); SB(bit); |
1257 | 1261 |
1258 /*----------------------------------------------------------------------*/ | 1262 /*----------------------------------------------------------------------*/ |
1259 | 1263 |
1260 /** */ | 1264 /** */ |
1261 | 1265 |
1262 return rl78->n_bytes; | 1266 return rl78->n_bytes; |
1263 } | 1267 } |
OLD | NEW |