| 1 |
{\rtf1\ansi\ansicpg1250\uc1\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1051\deflangfe1051{\fonttbl{\f0\froman\fcharset238\fprq2{\*\panose 02020603050405020304}Times New Roman;} |
| 2 |
{\f1\fswiss\fcharset238\fprq2{\*\panose 020b0604020202020204}Arial;}{\f2\fmodern\fcharset238\fprq1{\*\panose 02070309020205020404}Courier New;}{\f36\fnil\fcharset2\fprq0{\*\panose 00000000000000000000}StarSymbol{\*\falt Arial Unicode MS};} |
| 3 |
{\f37\fswiss\fcharset238\fprq2{\*\panose 020b0604030504040204}Verdana;}{\f40\froman\fcharset0\fprq2 Times New Roman;}{\f39\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f41\froman\fcharset161\fprq2 Times New Roman Greek;} |
| 4 |
{\f42\froman\fcharset162\fprq2 Times New Roman Tur;}{\f43\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f44\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f45\froman\fcharset186\fprq2 Times New Roman Baltic;} |
| 5 |
{\f46\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f50\fswiss\fcharset0\fprq2 Arial;}{\f49\fswiss\fcharset204\fprq2 Arial Cyr;}{\f51\fswiss\fcharset161\fprq2 Arial Greek;}{\f52\fswiss\fcharset162\fprq2 Arial Tur;} |
| 6 |
{\f53\fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f54\fswiss\fcharset178\fprq2 Arial (Arabic);}{\f55\fswiss\fcharset186\fprq2 Arial Baltic;}{\f56\fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f60\fmodern\fcharset0\fprq1 Courier New;} |
| 7 |
{\f59\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f61\fmodern\fcharset161\fprq1 Courier New Greek;}{\f62\fmodern\fcharset162\fprq1 Courier New Tur;}{\f63\fmodern\fcharset177\fprq1 Courier New (Hebrew);} |
| 8 |
{\f64\fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f65\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f66\fmodern\fcharset163\fprq1 Courier New (Vietnamese);}{\f410\fswiss\fcharset0\fprq2 Verdana;}{\f409\fswiss\fcharset204\fprq2 Verdana Cyr;} |
| 9 |
{\f411\fswiss\fcharset161\fprq2 Verdana Greek;}{\f412\fswiss\fcharset162\fprq2 Verdana Tur;}{\f415\fswiss\fcharset186\fprq2 Verdana Baltic;}{\f416\fswiss\fcharset163\fprq2 Verdana (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255; |
| 10 |
\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0; |
| 11 |
\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \fs24\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \snext0 Normal;}{ |
| 12 |
\s1\ql \li0\ri0\sb240\sa120\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\outlinelevel0\rin0\lin0\itap0 \b\f1\fs32\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon17 \snext16 heading 1;}{ |
| 13 |
\s2\ql \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon17 \snext16 heading 2;}{ |
| 14 |
\s3\ql \li0\ri0\sb240\sa120\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\outlinelevel2\rin0\lin0\itap0 \b\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon17 \snext16 heading 3;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;} |
| 15 |
{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv |
| 16 |
\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{\*\cs15 \additive \f36\fs18 Bullets;}{ |
| 17 |
\s16\ql \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon0 \snext16 Body Text;}{ |
| 18 |
\s17\ql \li0\ri0\sb240\sa120\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon0 \snext16 Heading;}{ |
| 19 |
\s18\ql \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon16 \snext18 List;}{ |
| 20 |
\s19\ql \li0\ri0\sb120\sa120\nowidctlpar\noline\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \i\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon0 \snext19 Caption;}{ |
| 21 |
\s20\ql \li0\ri0\nowidctlpar\noline\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \fs24\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon0 \snext20 Index;}{\s21\ql \li0\ri0\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 |
| 22 |
\f2\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 \sbasedon0 \snext21 Preformatted Text;}}{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\listtable{\list\listtemplateid705839466{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow2 |
| 23 |
\levelstartat1\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}\s1}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelold\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}\s2}{\listlevel\levelnfc255 |
| 24 |
\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext |
| 25 |
\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0 |
| 26 |
\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0 |
| 27 |
\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listlevel\levelnfc255\levelnfcn255\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'00;}{\levelnumbers;}}{\listname ;}\listid-5}} |
| 28 |
{\*\listoverridetable{\listoverride\listid-5\listoverridecount0\ls1}}{\*\rsidtbl \rsid2897750\rsid6638741\rsid8934144\rsid12409975\rsid14363219}{\*\generator Microsoft Word 11.0.5604;}{\info{\title Cycle Counting for D52}{\author ala}{\operator ala} |
| 29 |
{\creatim\yr2007\mo2\dy25\hr23\min50}{\revtim\yr2007\mo2\dy25\hr23\min50}{\version2}{\edmins2}{\nofpages3}{\nofwords865}{\nofchars4933}{\nofcharsws5787}{\vern24689}}\paperw11905\paperh16837\margl1134\margr1134\margt1134\margb1134 |
| 30 |
\deftab709\widowctrl\ftntj\aenddoc\nospaceforul\lytprtmet\formshade\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1984\dghshow1\dgvshow0\jexpand\viewkind1\viewscale100\pgbrdrhead\pgbrdrfoot\bdrrlswsix\nolnhtadjtbl\oldas\rsidroot8934144 \fet0 |
| 31 |
\sectd \linex0\headery708\footery708\colsx708\endnhere\sectdefaultcl\sftntj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang |
| 32 |
{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7 |
| 33 |
\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\listtext\tab}\pard\plain |
| 34 |
\s1\qc \li0\ri0\sb238\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\outlinelevel0\rin0\lin0\itap0 \b\f1\fs32\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\fs36\insrsid12409975 Cycle Counting for D52 |
| 35 |
\par {\listtext\tab}}\pard \s1\qc \li0\ri0\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\outlinelevel0\rin0\lin0\itap0 {\fs24\insrsid12409975 and D48 and DZ80 |
| 36 |
\par }\pard\plain \s16\qc \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\i\fs16\insrsid12409975 by Jan Waclawek, wek at efton dot sk, Feb 2007 |
| 37 |
\par }{\insrsid12409975 |
| 38 |
\par {\listtext\tab}}\pard\plain \s2\qj \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Some pseudo-legal stuff |
| 39 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Absolutely no guarantee. Use at your own risk. What else would you expect? |
| 40 |
\par {\listtext\tab}}\pard\plain \s2\qj \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 How? |
| 41 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Add }{\b\insrsid12409975 Z}{\insrsid12409975 directives to the .ctl file, with }{ |
| 42 |
\b\insrsid12409975 range}{\insrsid12409975 for which the cycle counting has to be performed. |
| 43 |
\par The output file will contain a cycle number for each instruction in the comment field, and a summary after end of each range. |
| 44 |
\par Ranges for Z directives can be }{\b\insrsid12409975 nested}{\insrsid12409975 and can be defined in }{\b\insrsid12409975 any order}{\insrsid12409975 , but must not partially overlap. |
| 45 |
\par All cycle counts are in given }{\b\insrsid12409975 in instruction cycles}{\insrsid12409975 . For clock cycles, multiply by clock/instruction value. |
| 46 |
\par {\listtext\tab}}\pard\plain \s2\qj \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 More details... |
| 47 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\b\insrsid12409975 Z[range][suffix[value]] |
| 48 |
\par Range}{\insrsid12409975 can be defined as usual with other directives in .ctl files - either as }{\i\insrsid12409975 start}{\b\i\insrsid12409975 \_}{\i\insrsid12409975 end}{\insrsid12409975 or as }{\i\insrsid12409975 start}{\b\i\insrsid12409975 +}{ |
| 49 |
\i\insrsid12409975 length. }{\insrsid12409975 Range can also be a }{\b\insrsid12409975 single number}{\insrsid12409975 (except where the "-" suffix is needed - see known issues), which is equivalent to a }{\i\insrsid12409975 start-start}{ |
| 50 |
\insrsid12409975 range. |
| 51 |
\par }{\b\insrsid12409975 Suffix}{\insrsid12409975 is one of: |
| 52 |
\par }\pard \s16\qj \fi-402\li388\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin388\itap0 {\b\insrsid12409975 *}{\insrsid12409975 -\tab the total cycle count of this range is multiplied by the given }{\i\insrsid12409975 value}{\insrsid12409975 |
| 53 |
, and this value will be added to the parent range cycle count. Useful for cycle counting in cycles. See also }{\i\insrsid12409975 (auto)repeat}{\insrsid12409975 in }{\i\insrsid12409975 special cases}{\insrsid12409975 below. |
| 54 |
\par }{\b\insrsid12409975 -}{\insrsid12409975 -\tab this range (including its subranges) will be excluded from cycle count of the parent; however, the total count of this range will be written to output file. No }{\i\insrsid12409975 value}{\insrsid12409975 |
| 55 |
needed. The individual instructions' cycle count will be suffixed by \'93}{\b\insrsid12409975 -}{\insrsid12409975 \'94 in the output file for this range. See also }{\i\insrsid12409975 taken/not taken}{\insrsid12409975 in }{\i\insrsid12409975 |
| 56 |
special cases}{\insrsid12409975 below. |
| 57 |
\par }{\b\insrsid12409975 =}{\insrsid12409975 -\tab the calculated cycle count for this range will be overriden by the given }{\i\insrsid12409975 value}{\insrsid12409975 |
| 58 |
. Intended to be used for individual instructions, use for a bigger range for extra fun with unexpected results. The individual instructions' cycle count will be prefixed by \'93}{\b\insrsid12409975 =}{\insrsid12409975 \'94 |
| 59 |
in the output file for this range. |
| 60 |
\par }{\b\insrsid12409975 ^}{\insrsid12409975 -\tab in this range, the alternative (higher) cycle count is always used, if available. The individual instructions' cycle count will be prefixed by \'93}{\b\insrsid12409975 ^}{\insrsid12409975 \'94 |
| 61 |
in the output file for this range. See also }{\i\insrsid12409975 taken/not taken}{\insrsid12409975 in }{\i\insrsid12409975 special cases}{\insrsid12409975 below. |
| 62 |
\par }\pard \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 {\insrsid12409975 Caution, }{\b\insrsid12409975 value}{\insrsid12409975 is entered in }{\b\insrsid12409975 hexadecimal}{\insrsid12409975 |
| 63 |
with no prefix nor suffix, just as the addresses in the range. |
| 64 |
\par {\listtext\tab}}\pard\plain \s2\qj \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Special cases |
| 65 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 |
| 66 |
Some processors, such as the Z80 and the SiLabs singleclock '51 core, have some instructions with two different cycle counts - conditional jumps (calls, returns), with different timing for the taken/not taken jump; and autorepeated instructions. The }{ |
| 67 |
\b\insrsid12409975 default}{\insrsid12409975 value is the }{\b\insrsid12409975 smaller}{\insrsid12409975 , jump-not-taken, or, for the autorepeated instructions, last-repeat (single-pass), value. However, there are exceptions. |
| 68 |
\par }{\b\insrsid12409975 Repeated}{\insrsid12409975 and }{\b\insrsid12409975 autorepeated}{\insrsid12409975 instructions can be properly counted, if a single-address range is given for the first byte of the instruction, with a }{\b\insrsid12409975 *}{ |
| 69 |
\insrsid12409975 suffix, giving the number of repeats. In this case, the instruction's cycle count is calculated as the number of repeats less one times the bigg |
| 70 |
er count, plus the smaller count. This calculation is written to the comment field and there will be no summary for this range. |
| 71 |
\par For example, if }{\f2\insrsid12409975 Z addr*23}{\insrsid12409975 directive is used for a djnz at address addr, the following will be output (note that value is 23 hexadecimal = 35 decimal): |
| 72 |
\par }{\f2\insrsid12409975 addr:\tab djnz\tab begin\tab \tab ;450 = 13 * 34x + 8 ; |
| 73 |
\par }{\insrsid12409975 Note, that this won't work if the range is bigger than this. Thus, for example, if there is a cycle ending by a djnz (Z80-style) executed multiple times, the proper cycle count cannot be obtained using a single }{\f2\insrsid12409975 |
| 74 |
Z begin-end*repeats}{\insrsid12409975 directive; the following construction has to be used instead: |
| 75 |
\par }\pard \s16\qj \li0\ri0\nowidctlpar\tx2839\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 {\f2\insrsid12409975 Z begin-addr1*repeats\tab ;addr1 is the address just before djnz (addr1=addr2-1) |
| 76 |
\par Z addr2*repeats\tab ;addr2 is the address of djnz |
| 77 |
\par Z begin-addr2\tab ;this range gives the final count |
| 78 |
\par }\pard \s16\qj \li0\ri0\sb113\sa119\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 {\insrsid12409975 A similar }{\insrsid8934144 construction can be used for a}{\insrsid12409975 cycle ending by a}{\insrsid8934144 ny}{\insrsid12409975 |
| 79 |
conditional jump. |
| 80 |
\par }\pard \s16\qj \li0\ri0\sb283\sa119\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 {\b\insrsid12409975 Conditional jumps }{\insrsid12409975 are guessed to be }{\b\insrsid12409975 taken}{\insrsid12409975 |
| 81 |
, if the following instruction falls outside any range, or an excluding range (suffix }{\b\insrsid12409975 -}{\insrsid12409975 ) begins on the following instruction, or, of course, if \'93explicit taken\'94 |
| 82 |
has been defined (see ^ suffix). In this case, the jump instruction's cycle count will be prefixed by \'93}{\b\insrsid12409975 ^}{\insrsid12409975 \'94 in the output file. |
| 83 |
\par }\pard \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 {\insrsid12409975 If the guesses work out bad, try to use the }{\b\insrsid12409975 =}{\insrsid12409975 prefix for overriding it by explicit cycle count value. |
| 84 |
\par {\listtext\tab}}\pard\plain \s2\qj \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Customized cycle files |
| 85 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 The default cycles counts can be overriden by a user-definable list of cycle counts. |
| 86 |
}{\insrsid8934144 This is imported using a command-line }{\b\insrsid8934144\charrsid12409975 \endash z}{\insrsid8934144 switch. The filename must be added immediately after \endash z, with not space.}{\insrsid12409975 |
| 87 |
\par The}{\insrsid8934144 format of each line in the file is the following:}{\insrsid12409975 |
| 88 |
\par }{\insrsid8934144 [opcode }{\b\insrsid8934144\charrsid8934144 -}{\insrsid8934144 cycle count[}{\b\insrsid8934144\charrsid8934144 /}{\insrsid8934144 alternative cycle count]][}{\b\insrsid8934144\charrsid8934144 ;}{\insrsid8934144 comment][}{ |
| 89 |
\b\insrsid8934144\charrsid8934144 #}{\insrsid8934144 comment] |
| 90 |
\par Opcode and cycle counts are given in hexadecimal with no prefix/suffix, maximum two digits.}{\insrsid12409975 Alternative cycle count is for conditional jumps and autorepeated instructions, see }{\i\insrsid12409975\charrsid12409975 special cases}{ |
| 91 |
\insrsid12409975 above. Opcodes can be in any order. Missing opcodes will be given cycle count = 0. Comment with }{\b\insrsid12409975\charrsid12409975 ;}{\insrsid12409975 is ignored, comment with }{\b\insrsid12409975\charrsid12409975 #}{ |
| 92 |
\insrsid12409975 is printed to console when file is read in.}{\insrsid8934144 |
| 93 |
\par {\listtext\tab}}\pard\plain \s2\ql \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Known issues |
| 94 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 There is }{\insrsid12409975\charrsid6638741 no 8080 support}{\insrsid12409975 |
| 95 |
in DZ80. |
| 96 |
\par }{\insrsid6638741 In the import of user definable cycle files, there is }{\insrsid6638741\charrsid6638741 no support for the prefixed Z80 instructions}{\insrsid6638741 .}{\insrsid12409975 |
| 97 |
\par }{\insrsid6638741 If the }{\b\insrsid6638741\charrsid6638741 -}{\insrsid6638741 suffix has to be used to specify an excluded range for a single instruction, the one-address format cannot be used, i.e. }{\i\insrsid6638741\charrsid6638741 Z address-}{ |
| 98 |
\insrsid6638741 won't work properly. Use }{\i\insrsid6638741\charrsid6638741 Z address}{\i\insrsid6638741 \_}{\i\insrsid6638741\charrsid6638741 address}{\i\insrsid6638741 \_}{\insrsid6638741 instead. |
| 99 |
\par {\listtext\tab}}\pard\plain \s2\ql \li0\ri0\sb465\sa119\keepn\nowidctlpar\hyphpar0\nooverflow\faroman\ls1\ilvl1\outlinelevel1\rin0\lin0\itap0 \b\i\f1\fs28\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid12409975 Why in disassembler? |
| 100 |
\par }\pard\plain \s16\qj \li0\ri0\sa120\nowidctlpar\hyphpar0\nooverflow\faroman\rin0\lin0\itap0 \f37\fs20\lang1033\langfe1051\cgrid\langnp1033\langfenp1051 {\insrsid14363219 Cycle counting is used usually to optimize a certain section of a newly written |
| 101 |
program. It would be more convenient to have the cycle count in assembler and/or compiler output, no doubt.}{\insrsid12409975 |
| 102 |
\par }{\insrsid14363219 However, having it in disassembler, the cycle counting gets assembler/compiler independent. Most of assemblers/compilers are closed source, even if some of them are provided free. Support for cycle counting is }{\insrsid2897750 |
| 103 |
therefore upon to the goodwill of the assembler/compiler author. Also, it is not likely that a common library would fit universally, which makes cycle counting availability accross multiple tools less likely. |
| 104 |
\par }{\insrsid14363219 That's why. |
| 105 |
\par }{\insrsid12409975 |
| 106 |
\par }} |