DO NOT EDIT: this file was generated by a program.
-Copyright (C) 2011 Massachusetts Institute of Technology
+Copyright (C) 2010 Massachusetts Institute of Technology
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
DECODE_FLOAT (value)
#define SVM1_INST_COPY_BLOCK_U8_W 0x0f
-#define DECODE_SVM1_INST_COPY_BLOCK_U8_W(size, from, to) \
- DECODE_UNSIGNED_8 (size); \
+#define DECODE_SVM1_INST_COPY_BLOCK_U8_W(to, from, size) \
+ DECODE_WORD_REGISTER (to); \
DECODE_WORD_REGISTER (from); \
- DECODE_WORD_REGISTER (to)
+ DECODE_UNSIGNED_8 (size)
#define SVM1_INST_COPY_BLOCK_WR_W 0x10
-#define DECODE_SVM1_INST_COPY_BLOCK_WR_W(size, from, to) \
- DECODE_WORD_REGISTER (size); \
+#define DECODE_SVM1_INST_COPY_BLOCK_WR_W(to, from, size) \
+ DECODE_WORD_REGISTER (to); \
DECODE_WORD_REGISTER (from); \
- DECODE_WORD_REGISTER (to)
+ DECODE_WORD_REGISTER (size)
#define SVM1_INST_LOAD_NON_POINTER_TC_U8 0x11
#define DECODE_SVM1_INST_LOAD_NON_POINTER_TC_U8(target, type_1, value) \
WREG_SET (SVM1_REG_STACK_POINTER, ((word_t)stack_pointer)); \
WREG_SET (SVM1_REG_FREE_POINTER, ((word_t)Free)); \
WREG_SET (SVM1_REG_VALUE, GET_VAL); \
- WREG_SET (SVM1_REG_DYNAMIC_LINK, ((word_t)(OBJECT_ADDRESS(GET_VAL)))); \
+ WREG_SET (SVM1_REG_DYNAMIC_LINK, BYTE_ADDR(OBJECT_ADDRESS(GET_VAL))); \
} while (0)
#define EXPORT_REGS() do \
DEFINE_INST (copy_block_u8_w)
{
- DECODE_SVM1_INST_COPY_BLOCK_U8_W (n_words, r_from, r_to);
+ DECODE_SVM1_INST_COPY_BLOCK_U8_W (r_to, r_from, n_words);
copy_block ((WORD_ADDR (WREG_REF (r_to))),
(WORD_ADDR (WREG_REF (r_from))),
n_words);
DEFINE_INST (copy_block_wr_w)
{
- DECODE_SVM1_INST_COPY_BLOCK_WR_W (r_n_words, r_from, r_to);
+ DECODE_SVM1_INST_COPY_BLOCK_WR_W (r_to, r_from, r_n_words);
copy_block ((WORD_ADDR (WREG_REF (r_to))),
(WORD_ADDR (WREG_REF (r_from))),
(WREG_REF (r_n_words)));