home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
turbopas
/
tp
/
utl2
/
utl2.lbr
/
TURBO.TZP
/
TURBO.TIP
Wrap
Text File
|
1987-04-26
|
640b
|
23 lines
A tip obtained from the JOURNAL of the TURBO USERS GROUP.
A small change for a big bang.
Incrementing or decrementing an integer or byte quantity is
slower than using the SUCC or PRED standard functions.
Particularly if the variable is an integer.
The statement
var Count : integer;
count := count + 1; takes 82 T-cycles on the Z80 and 32
clocks on the 8088.
The statement count := succ(count); takes 46 T-cycles on the
Z80 and 30 clocks on the 8080.
Additionally the second statement requires 5 less bytes on the
Z80 and 2 less on the 8088.
By : M. Pickhardt Passed Along By : W. Mabee, CRNA