view docs/ccguide/l3tol.refentry @ 2798:b70d93f8d7ce lwtools-port

Updated coco1/modules/makefile and coco3/modules/makefile to help resolve issues with i(x) and s(x) descriptors. Updated level1/coco1/modules/makefile & level2/coco3/modules/makefile so that correct values would be sent to assembler when building superdesc.asm for s(x).dd and i(x).dd descriptors.
author drencor-xeen
date Mon, 28 Jan 2013 16:13:05 -0600
parents 986ff3d9f814
children
line wrap: on
line source

<refentry id="l3tol">
<refnamediv>
<refname>L3tol</refname>
<refname>Ltol3</refname>
<refpurpose>convert between long integers and 3-byte integers</refpurpose>
</refnamediv>

<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
  <funcdef><function>l3tol</function></funcdef>
  <paramdef>long *<parameter>lp</parameter></paramdef>
  <paramdef>char *<parameter>cp</parameter></paramdef>
  <paramdef>int <parameter>n</parameter></paramdef>
</funcprototype>

<funcprototype>
  <funcdef><function>ltol3</function></funcdef>
  <paramdef>char *<parameter>cp</parameter></paramdef>
  <paramdef>long *<parameter>lp</parameter></paramdef>
  <paramdef>int <parameter>n</parameter></paramdef>
</funcprototype>
</funcsynopsis>

</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
Certain system values, such as disc addresses, are maintained
in three-byte form rather than four-byte; these functions
enable arithmetic to be used on them.
</para>
<para>
L3tol converts a vector on "n" three-byte integers pointed to
by "cp", into a vector of long integers starting at "lp".
</para>
<para>
Ltol3 does the opposite.
</para>
</refsect1>
</refentry>