Amiga_ROM_Kernel_Reference_Manual_Devices_3rd_edition.pdf
(
99405 KB
)
Pobierz
AMIGA ROM Kernel
Reference Manual
DEVICES
AMI GA
TECHNICAL
REFERENCE
SERIES
COMMODORE-AMIGA, INC.
T H I
R D
E
D
I
T
I
O
N
ROM Kernel Reference Manual
Devices
Third Edition
AMIGA
Commodore-Amiga, Inc.
AMIGA TECHNICAL REFERENCE SERIES
▼▼
Addison-Wesley Publishing Company, Inc.
Reading, Massachusetts Menlo Park, California New York
Don Mills, Ontario Wokingham, England Amsterdam Bonn
Sydney Singapore Tokyo Madrid San Juan
Paris Seoul Milan Mexico City Taipei
Contributors:
Dan Baker, Bruce Barrett, Mark Barton, Steve Beats, Dave Berezowski, Ray Brand, Bob Bums, Peter Cherna, Eric Cotton, Susan Deyl,
Sam Dicker, Ken Farinsky, Stuart Ferguson, Andy Finkel, Darren Greenwald, Paul Higginbottom, Larry Hildenbrand, Randell Jesup,
David Junod, Neil Katin, Joe Katz, Kevin Klop, Adam Levin, Dave Lucas, Dale Luck, Jim Mackraz, R.J. Mical, Bryce Nesbitt,
John Orr, Bob Pariseau, Rob Peck, Tom Pohorsky, Carl Sassenrath, Stan Shepard, Michael Sinz, Nancy Rains, Chris Raymond,
Tom Rokidd, Jez San, Carolyn Scheppner, Leo Schwab, Darius Taghavy, Ewout Walraven, Bart Whitebook and Rob Wyesham.
Third edition by:
Mark Ricci
Cover designer:
Hannus Design Associates
Copyright © 1991 by Commodore Electronics Limited.
M any of the designations used by manufacturers and sellers to distinguish their products are claimed as tradem arks. Where those designations appear in this book and
Addison-Wes ley was aw are of a tradem ark claim, the designations have been printed in initial caps. Amiga is a registered tradem ark of Commodore-Amiga, In c Amiga 500,
Amiga 1000, Amiga 2000, Amiga 3000, AmlgaDOS, Amiga Workbench, and Amiga Kickstart are tradem arks of Commodore-Amiga, In c AUTOCONFIG is a tradem ark of Com
modore Electronics Limited. Comm odore and the Commodore logo are registered tradem arks of Commodore Electronics Limited. M otorola is a registered tradem ark and
68000, 68010, 68020, 68030, and 68040 are tradem arks of Motorola, Inc. CAPE and Inovatronics are tradem arks of Inovatronics, Inc. Centronics is a registered tradem ark of Cen
tronics Data Com puter C arp. Epson is a registered tradem ark of Epson America, In c Hewlett-Packard is a tradem ark and H P LaserJet is a registered tradem ark of Hewlett-
Packard, Co. Hisoft and Devpac Amiga are tradem arks of Hi Soft. IBM is a registered tradem ark of International Business Machines Corp. Macintosh is a registered tradem ark
of Apple Computer, Inc. UNIX is a registered tradem ark of AT&T.
All rights reserved. N o part of this publication may be reproduced, stored in a retrieval systenv or transm itted, in any form o r by any means, electronic, mechanical, photocopy
ing, recording o r otherwise, w ithout the prior w ritten permission of the publisher. Printed in the United States of America. Published simultaneously in Canada.
Commodore item number: 363099-02
12345678 9-AL-9594939291
First printing, September 1991
ISBN 0-201-56775-X
WARNING: The information described in this manual may contain errors o r bugs, and may not function as described. All information is subject to enhancement or upgrade for
any reason including to fix bugs, add features, or change performance. As with all software upgrades, full compatibility, although a goal, cannot be guaranteed, and is in fact
unlikely.
DISCLAIMER: COMMODORE-AMIGA, INC., ("COMMODORE') MAKES NO WARRANTIES, EITHER EXPRESSED OR IMPLIED, OR REPESENTATIONS WITH RESPECT
TO THE INFORMATION DESCRIBED HEREIN. SUCH INFORMATION IS PROVIDED O N A N "AS IS" BASIS AND IS EXPRESSLY SUBJECT TO CHANGE WITHOUT
NOTICE IN NO EVENT WILL COMMODORE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY
CLAIM ARISING OUT OF THE INFORMATION PRESENTED HEREIN, EVEN IF IT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO
NOT ALLOW THE EXCLUSION OR LIMITATION OF IMPLIED WARRANTIES OR LIABILITIES FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE
LIMITATION OR EXCLUSION MAY NOT APPLY.
C
ontents
Chapter 1 INTRODUCTION TO AMIGA SYSTEM DEVICES......................................... 1
What is a D evice?............................................................................................................................. 2
Accessing a Device........................................................................................................................... 2
Using a D evice.................................................................................................................................. 4
Synchronous vs. Asynchronous Requests.......................................................
I/O Request Completion................................................................................................................... 6
Ending Device Access...................................................................................................................... 7
Devices With Functions.................................................................................................................... 8
Example Device Programs............................................................................................................... 9
Chapter 2 AUDIO DEVICE............................................................................................... 13
About Amiga A udio........................................................................................................................ 13
Audio Device Commands and Functions...................................................................................... 15
Device Interface............................................................................................................................... 16
A Simple Audio Example............................................................................................................... 19
Audio Allocation and Arbitration..................................................................................................21
Allocation and Arbitration Commands......................................................................................... 22
Hardware Control Commands....................................................................................................... 25
Double Buffered Sound Exam ple.................................................................................................. 28
Additional Information on the Audio Device............................................................................... 34
Chapter 3 CLIPBOARD DEVICE.....................................................................................35
Clipboard Device Commands and Functions............................................................................... 36
Device Interface...............................................................................................................................37
Monitoring Clipboard Changes..................................................................................................... 42
Example Clipboard Programs........................................................................................................ 43
Support Functions Called from Example Programs..................................................................... 50
Include File for the Example Programs......................................................................................... 58
Additional Information on the Clipboard D evice.........................................................................59
Chapter 4 CONSOLE DEVICE........................................................................................ 61
Console Device Commands and Functions.................................................................................. 62
Device Interface...............................................................................................................................63
About Console I /O .......................................................................................................................... 66
Writing to the Console Device....................................................................................................... 67
Reading from the Console Device..................................................................................................74
Copy and Paste Support..................................................................................................................76
Selecting Raw Input Events............................................................................................................77
Input Event Reports........................................................................................................................ 78
Using the Console Device Without a Window............................................................................. 79
5
i
Plik z chomika:
Teemu1.huusko
Inne pliki z tego folderu:
Amiga_ROM_Kernel_Reference_Manual_Devices_3rd_edition.pdf
(99405 KB)
emutos-512k-1.4.zip
(3621 KB)
emutos-amiga-rom-1.4.zip
(609 KB)
Screenshot_20250609_104533_WhatsApp.jpg
(322 KB)
Screenshot_20250609_104524_WhatsApp.jpg
(689 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin