text
stringlengths
0
99.6k
PART 2:
-------
It seems like every modem manufacturer takes great pride in making
their modem operate differently from their competitor's. Fortunately,
through the fog, there is light. The dialing mode of nearly all 64/128
dumb modems can be classified into two categories:
1) 1650 compatible. eg Pocket modem, 1064, 64 Modem
2) 1660 compatible. eg Mitey Mo, HES-II
The computer communicates with the modem via the user port, which is
hooked to the NMI generating CIA chip. The location that concerns
the programmer, is dec 56577 ($DD01) which is Data Port B of this CIA.
The Data Direction Register at location 56579 ($DD03) controls the
direction (in or out of the computer) of the lines represented in 56577.
POKE56579,38 This is a universal POKE. In addition to the hook line, this
sets as outputs the lines Request to Send, and
Data Terminal Ready. These are used by modems for
various purposes, but the POKE is common. The other 5
lines are inputs.
Bit 5 of 56577, and its corresponding line, are used by the
Commodore compatible dumb modems, for controlling the hook. By toggling
this bit, the modem can be put on and offline, or, if you prefer,
off and on hook.
The on/offline POKEs in BASIC are:
Modem Online Offline
1650 compatible POKE56577,PEEK(56577)OR32 POKE56577,PEEK(56577)AND223
1660 compatible POKE56577,PEEK(56577)AND223 POKE56577,PEEK(56577)OR32
As you can see, the logic for the 1650 and 1660 are exactly opposite. The
reason the change was made (the 1660 being a later design), was probably
because the 64 defaults to bit 5 on, and thus a 1650 defaults online,
even when not in use.
This should give you information to get started. Please feel free to
leave me any questions you have.
GOOD LUCK!
Sysop Gary Farmaner. Compuserve
MODIFICATION OF LADS SUBPROGRAM 'DIS' (DISASSEMBLER)
To Support Hardcopy
Mike Davidson
74116,2507
Copyright 1985
Commercial Rights Reserved
What is LADS?
Richard Mansfield's LADS (Label Assembler Development System) is very
probably the most thoroughly documented assembler for the 6502 chip family in
existence. Not the least of its virtues is price; for less than $15, one is
presented with a 450-page spiral-bound volume that includes the object code,
a checksum-based editor to facilitate almost painless entry, the full,
commented source code, and a highly readable tour of logic, routines,
programming hints, and help. Indeed, Mr. Mansfield conducts a one-to-one
seminar, and the instruction is first rate. Optionally, a disk may be
ordered at modest cost, if entering 10K of source code, plus another 5K of
object code isn't your idea of fun. In sum, LADS is a key for almost anyone
to successfully learn assembly language, and to begin producing some useful
stuff in ML.
'DIS'--The Disassembler Subprogram
Quite obviously, disassembly and study of commercial or "professional"
routines are a large part of becoming proficient in machine language. Study
of another's work is not unlike the casebook method in law, or the laboratory
environment in science. LADS includes a very fast optional disassembler.
The present file shows how to modify this subprogram to stream
disassembled code to a printer. There are, of course, other approaches to
this. My personal preference and work habits dictate that having an entire
routine in hardcopy is much easier to follow than starting and stopping screen
output. Convenience also determined that 'dis' remain a RAM-based aid rather
than attempting to read files directly from disk. As modified, a programmer
may disassemble between two addresses without having to watch the equipment.
The stop key is active at all times, to allow changing one's mind. One is not
obligated to use header-dictated starting addresses, but may dip into memory at
any point and quit at any point. 'Dis' is also most useful for exploring ROM
routines.
The Modification