AssemPro_Manual_ENG.pdf

(3599 KB) Pobierz
AssemPro
Amiga
|T-S-'21811'XNZVC
080086866098888B
PC i $54ABE
SSP = $88906
USP : S5892C
I'M
L:D2
L:D3
L:D4
lids
L:D7
I'M
SFFFF
$13
534
$64
B
$12
8
89B54A88
STARTIMOVEA.L ttDATAS,A2
88B54A8E
MOVE.W it$14,D2
B0854A92
SUB.H #2,52
89654A96
LOOPl:MOVE.HIB,M
BBB54A9A
HOVE.W D2.B3
B9B54A9C
LO0P2:KOVE.W 04,1*5
00B54A9E
LSL.W M.D5
80B54AAB
MOVE.W 8(A2,D5.M)JD6
80854AA4
80854M8
88654AAA
B8054AB2
CMP.H D7.D6
KOVE.W 2(A2(&5.M)J&7
L!A8
l:ai
l:A2
$42
9
6B854AAE
SMAPITIHOVE.U D6,2<A2,1>5.M)
08854AB&
CONTIIADD.U ttl,M
BLE C0NT1
HOVE.W D7,B(A2,D5.H)
DBRA r3,L00P2
L:A3
I'M
l:A5
$54AC4
B
l:A6
L:4
Sesnent-List! S54A84
Task: 5578D8
$676
6
6
6
8
88854ABE
89654AEA
B8854AC2
BREAKPOINT
60654AC4
DATAS:ORI.HK,-(AB)
BB654AC8
KM $A
68854ACA
ORI.B tt$56,$5A(A6)
UBPA D2.LO0P1 " = "■"■
;-■ - .
69654AD9
68854AD4
88854AD8
ORI.B tt$14,(AB)
ORI.H H$1A,D6
ORI.B IS32,-(M)
Abacus
A Data Becker Product
AssemPro
illto^RLASM:
*
Amiga
i
Ad»ws of the array dat
T
SUB.N
LOOPi: HOVE.H
U,k
t)8,D4
D3
njuibw of elenents H=28
(N-i) and -1 because of DBRA
I array across pointer
X as upper loop pointer
All] to U
WOP2! Ml n'n
LttX II D5
IOVE.H
6(A2,D5.H),D6
2D
tinss.2 bytes per array eleiwnt
b»shifting register left
ACIH> to J?
destination -COMPARE- source-)
T ft
— D5.H) »7
A2,D5.H)
com: aW
DBRA
DBRA
R1S
SHAFITIHOVE.W
:§ ; W.l* so» no exclianae
gdt fht array pointer
For I s 1 to K
For K = N-l to 1
D3.LOOP2
D2.L00P1
By Peter Schuiz
Abacus!
A Data Becker Product
Copyright Notice
AssemPro Amiga is copyrighted by Data Becker and Abacus Software, Inc. You should carefully read all the terms and conditions of this
agreement prior to using this software. By opening this sealed disk package, you are agreeing to accept the terms of this
agreement, which Includes the software license and software disclaimer of warranty. If you do not agree to the terms of this
agreement, do not open the disk package. Promptly return the unopened disk package and other Items that are part of this product
to the place where you obtained them for a full refund.
1. COPYRIGHT: You may not sublicense, assign or transfer the license or the program except as expressly provided in this Agreement Any attempt
otherwise to sublicense, assign or transfer any of the rights, duties or obligations here under is void.
2. LICENSE: You have the non-exclusive right to use this software. You may not distribute copies of the software or documentation to others. This
software can only be used on a single computer. You may not modify of translate the software or user manual without the prior written consent of Abacus
Software, me You may not use, copy, modify, or transfer the software or any copy, modification or merged portion in whole or in part, except as
expressly provided for in this license.
3. BACK-UP AND TRANSFER: You may make backup copies of AssemPro Amiga, but not of the documentation. Each backup copy must include
the copyright notices. Installation of AssemPro Amiga on your hard disk is permitted subject to these conditions. You may not sell, loan or give away
copies of AssemPro Amiga.
4. TERM: This license is effective until terminated. You may terminate it at any time by destroying the software together with all copies, modifications and
merged portions in any form. It will also terminate upon conditions set forth elsewhere in this Agreement or if you fail to comply with any term or condition
of this Agreement You agree upon such termination to destroy the software together with all copies, modification and merged portions in any farm.
5. LIMITED WARRANTY: This software is provided "as is" without warranty of any kind, either expressed or implied, including, but not limited to
the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the software is with you.
Should the software prove detective, you (and not Abacus Software, Inc. or an authorized personal computer dealer) assume the entire cost of all necessary
servicing, repair or correction. Some states do not allow the exclusion of implied warranties, so the above exclusion may not apply to you. This warranty
gives you specific legal rights and you may also have other rights which vary from state to state.
Abacus Software, Inc. does not warrant that the functions contained in the software will meet your requirements or that the operation of the software will be
uninterrupted or error free. However, Abacus Software, Inc. warrants the supplied diskettes to be free from defects in materials and workmanship under
normal use for a period of ninety (90) days from the date of delivery to you as evidenced by a copy of your receipt LIMITATIONS OF REMEDIES:
Abacus Software, Inc. entire liability and your exclusive remedy shall be: a. the replacement of any diskettes not meeting Abacus Software, Inc. "Limited
Warranty" and which are returned to Abacus Software, Inc. or an authorized Computer Dealer with a copy of your receipt, or, b. if Abacus Software, Inc.
or the dealer is unable to deliver a replacement diskette^) which is free of defects in materials or workmanship, you may terminate this Agreement by
returning the program.
IN NO EVENT WELL ABACUS SOFTWARE, INC. BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING ANY LOST PROFrTS, LOST
SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE SUCH
SOFTWARE EVEN IF ABACUS SOFTWARE, INC. OR ANY AUTHORIZED DEALER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. Some states do not allow the limitation or exclusion of liability for incidental or
consequential damages so the above limitation or exclusion may not apply to you.
This Agreement will be governed by the laws of the State of Michigan. Should you have any questions concerning this Agreement, you may contact Abacus
Software, Inc., Customer Service, 5370 52nd Street SE, Grand Rapids, MI 49512.
YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE BOUND BY ITS TERMS AND
WHICH SUPERSEDES ANY PROPOSAL OR PRIOR AGREEMENT. ORAL OR WRITTEN, AND ANY OTHER COMMUNICATIONS BETWEEN
US RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT.
Amiga and AmigaDOS are registered trademarks of Commodore-Amiga Inc.
Second Printing, 1990
Printed in U.S A.
Copyright ©1987,1988,1989,1990
Abacus, Inc
Data Becker GmbH
5370 52nd Street SE
Grand Rapids, MI 49512
Merowingstr. 30
4000 Duesseldorf,
West Germany
ISBN
1-557SS.026-X
1 1
Preface
At a time when C is all the rage, you have purchased an assembler. But
don't be bothered by the self-assured talk of dyed-in-the-wool C fans. C
is certainly a machine-oriented high-level language, but C is still a
high-level language. Even though manufacturers of C compilers would
like to tell you that C is as fast as assembly language, the fact cannot
be denied that assembly language is absolutely the fastest way to
program a computer.
program, writing it in C doesn't look so bad, assuming its floating
point routines were written in assembler. But normally a C program is
True, when you a have to do a lot of floating-point calculations in a
always noticeably slower than an assembly language program. The
reason is that the C compiler uses only a small set of the machine
language commands available. As an assembler programmer you have
the ability to obtain full use of your processor.
You often hear that you couldn't write any large programs in assembly
language, but this doesn't seem true anymore once you know that
AssemPro Amiga was written completely in assembly language. And it
certainly isn't small, is it?
The processors in the 68xxx family are very well suited to
programming in assembler. They offer a relatively compact, yet
powerful instruction set, so you don't have to remember too many
commands, and a large number of addressing modes, which together
with the fifteen CPU registers simplify programming considerably.
To further simplify working in assembly language, there are libraries
on your assembler disk which allow you to call almost any operating
system function with a single command.
After so many positive things, there are still a few things to be
mentioned:
AssemPro Amiga is an assembler. In order to use it, you must know
how to program in assembly language. If this is not the case, you
should get an introductory book and learn this language. If you don't
have any programming experience at all, then maybe you shouldn't
start with assembly language. Try Pascal or Modula instead.
iii
Just as AssemPro Amiga isn't designed to teach assembly language
programming, it is not intended as a tutorial about the Amiga operating
system either. If you don't already have books about the operating
system, there are many available.
In conclusion I would like to thank Hannes Riigheimer and Uwe Braun
who did some of the various work for me and also supported me in my
efforts, as well as Jochen Schneider, Barbara Schutte and Gudrun Debus
for extensive editing of this manual.
Peter Schulz
IV
Zgłoś jeśli naruszono regulamin