AssemPro_Manual.pdf

(8873 KB) Pobierz
199403584 UNPDF
AssemPro
Amiga
|T-S-'21811'XNZVC
080086866098888B
PC i $54ABE
SSP = $88906
USP : S5892C
I'M
89B54A88
88B54A8E
B0854A92
89654A96
BBB54A9A
8 B9B54A9C
B 00B54A9E
$12 80B54AAB
SFFFF 80854AA4
$13 80854M8
534 88654AAA
$64 6B854AAE
$42 B8054AB2
9 08854AB&
B 89654AEA
$54AC4 88854ABE
6 B8854AC2
6 60654AC4
6 BB654AC8
8 68854ACA
$676 69654AD9
68854AD4
88854AD8
STARTIMOVEA.L ttDATAS,A2
MOVE.W it$14,D2
SUB.H #2,52
LOOPl:MOVE.HIB,M
HOVE.W D2.B3
LO0P2:KOVE.W 04,1*5
LSL.W M.D5
MOVE.W 8(A2,D5.M)JD6
KOVE.W 2(A2(&5.M)J&7
CMP.H D7.D6
BLE C0NT1
SMAPITIHOVE.U D6,2<A2,1>5.M)
HOVE.W D7,B(A2,D5.H)
CONTIIADD.U ttl,M
DBRA r3,L00P2
UBPA D2.LO0P1"="■"■ ;-■ - .
BREAKPOINT
DATAS:ORI.HK,-(AB)
KM $A
ORI.B tt$56,$5A(A6)
ORI.B tt$14,(AB)
ORI.H H$1A,D6
ORI.B IS32,-(M)
L:D2
L:D3
L:D4
lids
I'M
L:D7
L!A8
l:ai
l:A2
L:A3
I'M
l:A5
l:A6
L:4
Sesnent-List! S54A84
Task: 5578D8
Abacus
A Data Becker Product
199403584.002.png
AssemPro
Amiga
illto^RLASM:
* i
T
Ad»ws of the array dat
njuibw of elenents H=28
(N-i) and -1 because of DBRA
SUB.N U,k
LOOPi: HOVE.H t)8,D4
WOP2!Ml n'n D3
2D
LttX II D5
IOVE.H 6(A2,D5.H),D6
— D5.H) »7
T ft
SHAFITIHOVE.W
com:aW
DBRA
DBRA
R1S
I array across pointer
X as upper loop pointer
tinss.2 bytes per array eleiwnt
b»shifting register left
All] to U
ACIH> to J?
destination -COMPARE- source-)
:§ ; W.l* so» no exclianae
A2,D5.H)
D3.LOOP2
D2.L00P1
gdt fht array pointer
For I s 1 to K
For K = N-l to 1
By Peter Schuiz
Abacus!
A Data Becker Product
199403584.003.png
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: Youmaynot sublicense, assign ortransferthelicense ortheprogramexcept asexpresslyprovided inthis Agreement Any attempt
otherwise to sublicense, assignortransferany oftherights, duties or obligationshere underisvoid.
2. LICENSE: You have the non-exclusive righttouse this software. Youmaynot distribute copies ofthe software or documentation toothers. This
softwarecanonlybeusedonasinglecomputer. Youmaynotmodify oftranslatethe software orusermanual withoutthepriorwrittenconsentofAbacus
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
expresslyprovided for inthislicense.
3. BACK-UP AND TRANSFER: Youmaymakebackup copies ofAssemPro Amiga, butnotofthe documentation. Eachbackup copymust include
the copyrightnotices. InstallationofAssemPro Amiga onyourhard diskispermittedsubject tothese conditions. You maynotsell,loan orgive away
copies ofAssemProAmiga.
4.TERM:Thislicense iseffectiveuntil terminated.Youmayterminate itatanytimebydestroyingthesoftwaretogetherwithall copies,modificationsand
mergedportionsinanyform. Itwill alsoterminateuponconditionsset forthelsewhereinthisAgreementorifyou failtocomplywithanytermorcondition
ofthisAgreement Youagreeuponsuchterminationtodestroythesoftwaretogether withall copies,modificationandmergedportions inany farm.
5. LIMITED WARRANTY: This software isprovided "as is" without warranty ofany kind,eitherexpressed or implied, including, butnotlimitedto
the impliedwarranties ofmerchantability andfitness foraparticularpurpose.Theentire riskastothe quality andperformanceofthesoftware is withyou.
Shouldthesoftwareprovedetective,you(andnotAbacus Software, Inc.or anauthorizedpersonal computerdealer) assume theentirecostofallnecessary
servicing, repairor correction. Somestatesdonotallow theexclusionofimplied warranties, sothe aboveexclusionmaynotapplytoyou.Thiswarranty
givesyouspecificlegal rightsandyoumayalsohave otherrights whichvaryfromstatetostate.
AbacusSoftware,Inc.doesnotwarrantthatthe functionscontained inthesoftware will meetyourrequirementsorthattheoperationofthesoftwarewillbe
uninterruptedorerror free.However, AbacusSoftware, Inc. warrantsthesupplieddiskettestobe free fromdefects inmaterials and workmanshipunder
normal use for aperiod ofninety (90) days fromthe date ofdelivery to you asevidencedby a copy ofyourreceipt LIMITATIONS OFREMEDIES:
AbacusSoftware, Inc.entireliability andyourexclusiveremedyshallbe: a.thereplacementofanydiskettesnotmeetingAbacusSoftware,Inc. "Limited
Warranty" andwhichare returnedtoAbacusSoftware, Inc.oranauthorizedComputerDealerwithacopyofyourreceipt, or,b.ifAbacusSoftware, Inc.
orthe dealer is unable to delivera replacementdiskette^) which is free ofdefects inmaterials or workmanship, youmay terminate this Agreementby
returningtheprogram.
IN NO EVENT WELL ABACUS SOFTWARE, INC. BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDINGANY LOST PROFrTS, LOST
SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE SUCH
SOFTWAREEVEN IFABACUS SOFTWARE, INC. OR ANY AUTHORIZED DEALERHAS BEEN ADVISEDOFTHE POSSIBILITYOF SUCH
DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. Some states do not allow the limitation or exclusion ofliability for incidental or
consequentialdamagessothe above limitation orexclusion maynotapply toyou.
ThisAgreementwillbegovernedbythelawsofthe StateofMichigan. Shouldyouhave anyquestionsconcerningthisAgreement,youmaycontactAbacus
Software, Inc., CustomerService, 5370 52nd Street SE, GrandRapids, MI 49512.
YOUACKNOWLEDGETHATYOUHAVEREADTHISAGREEMENT,UNDERSTAND IT,AND AGREETO BE BOUND BYITSTERMS AND
WHICHSUPERSEDES ANYPROPOSALORPRIORAGREEMENT. ORALORWRITTEN,ANDANYOTHERCOMMUNICATIONS BETWEEN
USRELATINGTOTHESUBJECTMATTEROFTHISAGREEMENT.
AmigaandAmigaDOS are registeredtrademarksofCommodore-AmigaInc.
SecondPrinting, 1990
Printed inU.SA.
Copyright©1987,1988,1989,1990
Abacus,Inc
DataBeckerGmbH
537052ndStreetSE
Merowingstr. 30
GrandRapids, MI49512
4000Duesseldorf,
WestGermany
ISBN 1-557SS.026-X
1 1
199403584.004.png
Preface
Atatimewhen C is alltherage,you havepurchasedan assembler. But
don'tbebotheredbytheself-assuredtalkofdyed-in-the-woolC fans. C
is certainly a machine-oriented high-level language, but C is still a
high-level language. Even though manufacturersofCcompilerswould
like to tell you that C is as fast as assembly language, the factcannot
be denied that assembly language is absolutely the fastest way to
program a computer.
True, when you a have to do a lot offloating-point calculations in a
program, writing it in C doesn't look so bad, assuming its floating
pointroutines were written in assembler. Butnormally aC program is
always noticeably slower than an assembly language program. The
reason is that the C compiler uses only a small set of the machine
languagecommands available. As an assemblerprogrammer you have
the ability to obtain full useofyourprocessor.
You often hearthatyou couldn't write any largeprograms in assembly
language, but this doesn't seem true anymore once you know that
AssemPro Amigawas written completely inassembly language. Andit
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 ofaddressing modes, which together
with thefifteen CPUregisters simplifyprogrammingconsiderably.
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
startwithassembly language. TryPascal orModulainstead.
iii
199403584.005.png
Just as AssemPro Amiga isn't designed to teach assembly language
programming, itisnotintended asa tutorial aboutthe Amiga operating
system either. If you don't already have books about the operating
system, thereare manyavailable.
In conclusion I would like to thank Hannes Riigheimerand Uwe Braun
who did some ofthe various work forme and also supported me in my
efforts, aswell asJochen Schneider, Barbara Schutte andGudrunDebus
forextensiveeditingofthis manual.
PeterSchulz
IV
199403584.001.png
Zgłoś jeśli naruszono regulamin