18
Chapter 1 Overview
1.9 Instruction Format
1.9 Instruction Format
The instruction format can be classified into four types: generic, quick, short, and zero. The number of
instruction bytes that can be chosen by a given format is least for the zero format, and increases succes-
sively for the short, quick, and generic formats in that order.
The following describes the features of each format.
1.9.1 Generic format (:G)
Op-code in this format consists of two bytes. This op-code contains information on operation and src
*1
and dest
*2
addressing modes.
Instruction code here is comprised of op-code (2 bytes), src code (0-3 bytes), and dest code (0-3 bytes).
1.9.2 Quick format (:Q)
Op-code in this format consists of two bytes. This op-code contains information on operation and imme-
diate data and dest addressing modes. Note however that the immediate data in this op-code is a
numeric value that can be expressed by -7 to +8 or -8 to +7 (varying with instruction).
Instruction code here is comprised of op-code (2 bytes) containing immediate data and dest code (0-2
bytes).
1.9.3 Short format (:S)
Op-code in this format consists of one byte. This op-code contains information on operation and src and
dest addressing modes.Note however that the usable addressing modes are limited.
Instruction code here is comprised of op-code (1 byte), src code (0-2 bytes), and dest code (0-2 bytes).
1.9.4 Zero format (:Z)
Op-code in this format consists of one byte. This op-code contains information on operation (plus
immediate data) and dest addressing modes. Note however that the immediate data is fixed to 0, and
that the usable addressing modes are limited.
Instruction code here is comprised of op-code (1 byte) and dest code (0-2 bytes).
*1 src is the abbreviation of “source.”
*2 dest is the abbreviation of “destination.”
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...