# BYTE — November 1977 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-197711-byte-magazine-vol-02-11-real-time-clocks-5cea3f/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-197711-byte-magazine-vol-02-11-real-time-clocks-5cea3f/2#scan-4d272b60df88da3d281fa838e430ac535ef0f43c3d925b475c972a182aa2eed5)

Transcribed text:

Memory Mapped 10
Steve Ciarcia
Box 582
Glastonbury CT 06033
Pow\lr Wiring Table
Numbe r   Type   +5 voe   Gnd
Pin   Pin   IC3
7407
22on
(TY PICAL
FOR   8 l
ICl   7420   14
IC2   74154   24
IC3   7407   14
IC4   7407   14
ICS   74100   24
+5V OC
OUTPUT
STROBE
I   l..f
I   1J   STROSE NO . I
1 9   G2
2
x
N.O 2
A7
A4
IC 2   3   NO 3
4
74154
N0. 4
5   I CI NO 5 ICI   51.r   7420 6 18   GI 7420   NO. 6   lb
lo   NO. 7
NO 8   8
N0. 9
NO. IQ
A3   s   20   D   NO. II
N0 . 12
21   c A2   R   N0. 13
N0. 14
22   8 p Al   N0. 15
I   N0. 16
AO   N   23   A
MSS
I   don't   want   to   get   into   a   fight over
which microprocessor chip is better. They all
have   their   favorable   and   unfavorable   fea
tures.   But,   if you look a little closer, you
may find   that some of these extra features
can be added with very little expense.
I was   speaking with   a fel low computer
nut recently, and he was arguing about the
merits of the 6800 versus the 8080. I really
didn't care to continue the conversation no r
to justify why l had an 8080 and Z-80. But,
when   he said   Lhat one reason   was that the
6800 had memory mapped   10   and the 8080
didn't, l knew he didn't know what it was.
OU TPUT
8
7
12
7
7
7
This of course   made   me cu rious, and I
approached a number of 8080 users to ask
if they knew what memory mapped   10   was.
They assured   me that they did, and that it
was   in fact one of the mai n featu res of the
6800.   Bu t such a fea ture is hardly exclusive
to the 6800!
First of all , memory map ped   10   means
sim pl y   that   a portion   of memory   ad dress
space has been reserved for interfacing with
external devices.   A byte   of data   is stored
into a memory location, as always, but this
storage unit, rather than being made up of
1024 bit programmab le memory chips, is an
DATA   BUS   ! CROM CPU)
1 0   12   4
IC4
7407
07'
D6'
D5 '
D4'   BUFFER ED
OUT PU T
D3'   BU S
D2 '
D 1'
DO'
LSB
2   3
DI   D2
22   21   II   10
D3   D4   D5   D6
IC 5
74 100
8   BIT   LATCHED
PARAL L E L   OU TPUT
15   16
D7   D8
I 0   ADDRE SS   BUS
(10   CARD CONNECTOR-22PIN)
Figure 7: A schematic diagram for a direct addressed output port decoding circuit. The port assignments as diagrammed are from
octal codes 360 to 377. The bus pin assignments are for the Digital Group bus system, but the Altair (S-700} bus is logically
equivalent.
10   BYTE Nuvemhf'f 1977

Reading notes: OCR fragments in pin table and figure caption (e.g., 'Pow\lr Wiring Table', 'NO . I') make some pin assignments uncertain Reading order of the pin-table and schematic text blocks is interleaved and may not reflect original layout Product numbers 7407 and 74 100 appear with inconsistent spacing and may be OCR variants

Printed product names: 6800 · 8080 · Z-80 · 7407 · 7420 · 74154 · 74100 · 74 100

Printed dates: 1977 · 06033

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/3f4b65b4d4ca8bbe2b6839e49e7c51e84048c467175f276a0c171572b2a105c3/5cea3f2fcc7d9b4fe93e556e892bd7254225bae4e0ddb77e81acc500bfb882cf.pdf#page=12)

### PDF page 152

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-197711-byte-magazine-vol-02-11-real-time-clocks-5cea3f/2#scan-e386365dfc8662d7831e50de189838d9afe3ca05d025e1f96d8bfffb9280c10e)

Transcribed text:

Stephen Wozniak
Ap ple Computer
20863 Stevens Creek Blvd, B3C
Cupertino CA   95014
SWEET16: The 6502 Dream Machine
While   writing   Apple   BASIC for a 6S02
microprocessor   I re peatedly   encountered a
variant of Mu rphy'   Liw. Briefly stated, any
ro utine operating on 16 b it data will require
at   least twice   the code   that it shou ld. Pro
grams   making   extens ive   use   of   16   bit
pointers   (such   as   compilers,   ed itors   and
assemblers) are included in this category. In
my ca e, even the addition of a few doubl e
byte   instructions   to   the   6S02   would   have
only   lightly alleviated the problem. What 1
really needed was a hybrid o f th e MOS Tech
nology 6S02 and RCA 1800 architectures, a
powerful 8 bit data hand ler com pl emented
by an easy to use processor with an abun
dance   of   16   bit   registe rs   and   excellent
po inter capabi lity. My solution was to imple
ment a nonexistent 16 bi t "metaprocessor"
in   software,   interpreter style,   wh ich   I call
SWE ETl 6. Th is metaprocessor was sketched
at the end of my art icle in May 1977 BYT E,
and   the purpose of this article is to fi ll   in
the detai ls of SWE ETl 6.
SWEET16 is based aroun d sixteen 16 bit
300   B9 00   02   LOA   IN, Y   Get a char .
303   C9 CD   CMP   " M "   " M " for move?
305   0009   BNE   NOMOVE   No. skip move.
307   20 00   08   JSR   SW16   Yes, cal l SWEETl 6 .
MLOOP   LO   @R1   R 1 holds source address.
~ rA41   ST   @R2   R2 holds dest. address . t=   308 52
w   30 C F3   OCR   R3   Decrement length .
~   30 0   07 FB   BNZ   MLOOP   Loop until done.
vi   30F   00   RTN   Return to 6502 mode.
310   C9 C5   NOMOVE   CMP   "E"   " E" char?
312   DO 13   BEO   EX IT   Yes, exit.
314   C8   INY   No, continue.
Note :   Registers A, X, Y, P and Sare not disturbed by SWEET16.
Listing   I: Use of SWEET76 within an a   embly language program is accom
plished by executing a subroutine coll to the SWEET/6 entry point (address
307 here}. This call preserves the processor registers at the time of entry and
begins interpretive execution. End of interpretive execution is signaled by a
RTN operation code of SWEET76, at which point al/ the processor registers
will be restored.
150   HY rL Nu\cmhcr l'J77
registers called   RO to   Rl S, actua lly impl e
mented as 32 memory locations. RO doubles
as the SWEETl 6 accumu lator (ACC), R1   Sas
th e program counter (PC ). and R14   as   the
status register.   R13 ho lds compa re insr ruc·
tion result   and R12 is th e subroutine return
stack   pointer   if SWEETl 6 subrout in es are
used. All other SWE ETl 6 registers are at the
user's unrestric ted disposal.
SWEETl 6   instructions   fall   into   regi ter
and non register categories. The register oper
ations specify   one of the 16 registers to be
used as either a data element or a pointer to
data   in   memory depending on the specific
instruction .   For   exampl e,   the   instruction
lNR   RS uses   RS a   data and ST@R7 uses
R7 as a poin te r to data in memor y. Excep t
for the SET instruction, register operations
on ly require one byte. Th e nonregister oper
ations   are   prim arily   6S 02   style   branc hes
with th e secon d byte specify ing a ±127 byte
displacement   relat ive to   the ad dress of the
following   inst ruction .   If   a   prior   register
operation   result   meets   a   specified   branc h
con dition,   th e   displacement   is   added   to
SWEETl 6's   program   coun ter,   effecting   a
branch.
SWE ET l 6 is intended as a 6502 en hance
ment package,   not a stand alone processor.
A   6502   program   switch es   to   SWE ETl 6
mode with a subroutine ca ll, an d subsequen t
co de   is   interpreted   as   SWEETl 6   instruc
tions .   The   nonregister   operat ion   RT   re
tu rn s the user program to the 6S02's direct
execution mode after res toring th e internal
register   con tents (A,   X,   Y,   P and S) . The
exam ple of listing 1   il lustrates how to use
SWEETl 6 in some program segment.
Instruction Descriptions
The SWEETl 6 op code Iist   is sho rt and
uncomplicated.   Excepting   relative   branch
displacements,   hand assembly is trivial.   Al I
register op codes are fo rm ed   by com bining
two hexadeci mal digits, one for the op code
an d one to specify a register. For exa mple,

Reading notes: OCR noise in some words such as 'Ap ple', 'Mu rphy'   Liw' and 'lNR' may be misread Listing text and hexadecimal code is partially garbled in extraction

Printed dates: May 1977 · 1977

Languages: English

[Original PDF page 152](https://www.vintageapple.net/files/3f4b65b4d4ca8bbe2b6839e49e7c51e84048c467175f276a0c171572b2a105c3/5cea3f2fcc7d9b4fe93e556e892bd7254225bae4e0ddb77e81acc500bfb882cf.pdf#page=152)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-197711-byte-magazine-vol-02-11-real-time-clocks-5cea3f/1.md)
