MAC65 Assembler

Total Page:16

File Type:pdf, Size:1020Kb

MAC65 Assembler MAC65 Assembler http://www.abbuc.de http://www.atari-portal.de Converted 2006 by Andreas Bertelmann for ABBUC I MAC65 Assembler Contents Part I Introduction 5 Part II The editor 8 1 General editor........ .usage.......... ................................................................................................................ 8 2 Text mode. .................................................................................................................................. 8 3 Edit mode. .................................................................................................................................. 9 Part III Editor commands 11 1 ASM ................................................................................................................................... 11 2 BLOAD ................................................................................................................................... 12 3 BSAVE ................................................................................................................................... 12 4 BYE ................................................................................................................................... 12 5 C (Change... .Memory)............... ................................................................................................................ 13 6 D (Display... .Memory)............... ................................................................................................................ 13 7 DEL ................................................................................................................................... 13 8 DOS ................................................................................................................................... 13 9 ENTER ................................................................................................................................... 14 10 FIND ................................................................................................................................... 14 11 LIST ................................................................................................................................... 14 12 LOAD ................................................................................................................................... 15 13 LOMEM ................................................................................................................................... 15 14 NEW ................................................................................................................................... 15 15 NUM ................................................................................................................................... 16 16 PRINT ................................................................................................................................... 16 17 REN ................................................................................................................................... 16 18 REP ................................................................................................................................... 17 19 SAVE ................................................................................................................................... 17 20 SIZE ................................................................................................................................... 17 21 TEXT ................................................................................................................................... 18 22 ? (hex/dec... .convert).............. ................................................................................................................. 18 Part IV The Macro Assembler 20 1 Assembler.... .input........ ...................................................................................................................... 21 2 Instruction.... .format........... ................................................................................................................... 21 3 Labels ................................................................................................................................... 22 4 Operands.. ................................................................................................................................. 22 5 Operators.. ................................................................................................................................. 22 Operators:... .+.. .-. .*. ./. ............................................................................................................................................ 23 Operators:... .&.. .!. .^.. ............................................................................................................................................. 23 Operators:... .=.. .>.. .<.. .<>.... .>=.... .<=.... ............................................................................................................................. 23 Converted 2006 by Andreas Bertelmann for ABBUC Contents II Operators:... ..OR...... ..AND........ ..NOT......... ........................................................................................................................... 23 Operators:... .[. .]. .................................................................................................................................................. 24 6 Assembler.... expressions...................... ......................................................................................................... 24 7 Operator .precedence.................... .............................................................................................................. 24 8 Numeric .constants................. ................................................................................................................. 25 9 Strings ................................................................................................................................... 25 Part V Directives 27 1 Directive:.. .*=... ............................................................................................................................ 27 2 Directive:.. .=.. ............................................................................................................................. 28 3 Directive:.. ..=... ............................................................................................................................ 28 4 Directive:.. ..BYTE.......... .[and........ ..SBYTE].............. ........................................................................................... 28 5 Directive:.. ..CBYTE............. .................................................................................................................. 29 6 Directive:.. .DBYTE............ .[. .see...... .also....... ..WORD............. .]. ................................................................................. 30 7 Directive:.. ..ELSE.......... ..................................................................................................................... 30 8 Directive:.. ..END........ ....................................................................................................................... 30 9 Directive:.. ..ENDIF........... .................................................................................................................... 30 10 Directive:.. ..ERROR.............. ................................................................................................................. 31 11 Directive:.. ..FLOAT............. .................................................................................................................. 31 12 Directive:.. ..IF.... ........................................................................................................................... 31 13 Directive:.. ..INCLUDE................. .............................................................................................................. 32 14 Directive:.. ..LOCAL............. .................................................................................................................. 33 15 Directive:.. ..OPT........ ....................................................................................................................... 33 16 Directive:.. ..PAGE........... .................................................................................................................... 34 17 Directive:.. ..SBYTE............. .................................................................................................................. 35 18 Directive:.. ..SET........ ....................................................................................................................... 35 19 Directive:.. ..TAB........ ....................................................................................................................... 35 20 Directive:.. ..TITLE........... .................................................................................................................... 36 Part VI Macro facility 38 1 Directive:.. ..ENDM........... ................................................................................................................... 38 2 Directive:.. ..MACRO.............. ...............................................................................................................
Recommended publications
  • Appendix D Atari 400/800 Memory Map D-1
    BASIC REFERENCE MANUAL JI\. ATARI® CIA Warner Communications Company Every effort has been made to ensure that this manual accurately documents the operation ofthe ATARI 400 and the ATARI 800 com­ puter. However, due to the ongoing improvement and update of the computer software, Atari, Inc. cannot guarantee the accuracy of printed material after the date ofpublication, nor can Atari accept responsibility for errors or omissions. Revised manuals and update sheets will be published as needed and may be purchased by writing to: Atari Software Support Group P.O. Box 427 Sunnyvale, CA 94086 Printed in USA ©1980 ATARI, INC. CONTENTS PREFACE vii 1 GENERAL INFORMATION Terminology 1 Special Notations Used In This Manual 3 Abbreviations Used In This Manual 4 Operating Modes 5 Special Function Keys 5 Arithmetic Operators 6 Operator Precedence 7 Built-In Functions 7 Graphics 8 Sound and Games 8 Wraparound and Keyboard Rollover 8 Error Messages 8 2 COMMANDS BYE 9 CONT 9 END 9 LET 10 LIST 10 NEW 10 REM 10 RUN 11 STOP 11 3 EDIT FEATURES Screen Editing 13 Control (CTRL) Key 13 Shift Key 13 Double Key Functions 14 Cursor Control Keys 14 Keys Used With CTRL Key 14 Keys Used With Shift Key 14 Special Function Keys 14 Break Key 14 Escape Key 14 4 PROGRAM STATEMENTS FORINEXT/STEP 15 GOSUB/RETURN 16 GOTO 17 IF/THEN 18 Contents iii ON/GOSUB 20 ON/GOTO 20 POP 20 RESTORE 21 TRAP 22 5 INPUT/OUTPUT COMMANDS Input/Output Devices 23 CLOAD 24 CSAVE 24 DOS 25 ENTER 25 INPUT 25 LOAD 26 LPRINT 26 NOTE 26 OPEN/CLOSE 26 POINT 28 PRINT 28 PUT/GET 28 READ/DATA 28 SAVE 29
    [Show full text]
  • Atari Program Exchange Summer 1981 Catalog
    SOFTWARE CATALOG SUMMER EDITION-1981 ATARI PROGRAM ) Order For ATARI PROGRAM Please read all the ordering information before filling out this form. Name Please indicate the amount of RAM you have Address City K State/County Zip/Mail Code Phone ( (alternate shipment method if UPS does not deliver in your area Qty Order Number Title Price Each Total Each APX APX APX APX APX APX APX APX APX Subtotal of all items ordered ATARI PROGRAM EXCHANGE California residents add 6.5% sales tax P.O. BOX 427 Shipping & handling charge $2.50 155 MOFFETT PARK DRIVE TOTAL CI I MKIV\/A 1 C C A 0>inO£ Payment— Minimum order Check/Money Order $10.00, plus shipping and VISA handling Master Card Send all orders Interbank No.: to this address Credit card account no. Toil-Free Numbers for Credit Card Orders Within California 800/672-1850 Credit card expiration date Signature (as appears on card) Elsewhere in Continental U.S.A. 800/538-1862 Ordering Information ATARI Program Exchange products only. software and/or material is distributed The ATARI Program Exchange handles or- solely on an "as is" basis. The entire risk as ders only tor the items described in this to the quality and performance of such catalog. For all standard ATARI products, programs is with the purchaser. Purchaser including any software, hardware, or doc- accepts and uses this computer program umentation mentioned in this catalog, see software and/or material upon his/her own your local ATARI dealer. inspection of the computer software program and/or material, without reliance Minimum order.
    [Show full text]
  • ATARI' PROGRAM EXCHANGE User-Written Softwore for ATARI
    ATARI'PROGRAM EXCHANGE User-WrittenSoftwore for ATARIHome Computers John R. Rovers III June 1982 COSMATIC ATARI DEVELOPMENT PACKAGE DISKETTE (APX-20051) REQUIRES: 32K RAM COSMATIC ATARI DEVELOPHENT by John R« Powers, III Prograw and Manual Contents @1982 John R* Powers» III Copyright notice* On receipt of this computer program and associated documentation (the software), the author grants you a nonexclusive license to execute the enclosed software* This software is copyrighted* Tou are prohibited from reproducing, translating, or distributing this software in any unauthorized manner* TRADEMARKS OF ATARI The following are trademarks of Atari, Inc. ATARI* ATARI 400" Home Computer ATARI 800" Home Computer ATARI 410°" Program Recorder ATARI 810"" Disk Drive ATARI 820-40-Column Printer ATARI 822"Thermal Printer ATARI 825~80-Column Printer ATARI 830-Acoustic Modem ATARI 850"Interface Module HHHHHH»»O««»»*»«»»«««»»«»»«»»««*« «»»«»« HMHIHHHmHHHHHHHUHHHK *»»»********** mI99*** Distributed by The ATARI Program Exchange P. O« Box 427 155 Moffett Park Drive, B-l Sunnyvale, CA 94086 To request an APX Software Catalog, write to the address above, or call toll-freef 800/538-1862 (outside California) 800/672-1850 (within California) Or call our Sales number, 408/745-5535* ***************************************************** **»* *t it ********** mm mt»» »»itmt IMPORTANT! DUPLICATE THIS DISKETTE BEFORE USING THIS PROGRAM! This APX diskette is unnotched to protect the software against accidental erasure* However* this protection also prevents a program
    [Show full text]
  • SYNASSEMBLER SYNAPSE Software (C) 1982
    SYNASSEMBLER SYNAPSE Software (c) 1982 An Adaptation by Steve Hales of the S.C. Assembler II - Version 4.0 -------------------------------------------------------------- SYNASSEMBLER INDEX Introduction 1 Commands 4 Editing commands Overview 4 Editing commands-Detail 6 DOS commands 16 Monitor commands 19 Source Program Format 23 Directives 25 Labels 33 Memory Usage 36 Operand Expressions 36 Decimal and Hexidecimal Numbers 37 Asterisk 38 Addressing Modes 39 Editing Features 43 Debugging Programs 44 Step 45 Trace 46 Examine and Change Registers 46 APPENDIX Monitor Tricks..............................Appendix...I Memory Map..................................Appendix..II Converting Atari Assembler/Editor Source....Appendix.III Bibliography................................Appendix..IV Instruction Code Table......................Appendix...V ----------------------------------------------------------------------- -1- INTRODUCTION SYNASSEMBLER is a convenient and powerful tool for software development on the Atari computer system. The assembler uses standard 6502 mnemonics and syntax, and includes many useful features for creating, editing, assembling and testing your assembly language programs. Now assembly language programming is almost as easy as programming in BASIC. Here is a summary of the most exciting features: * Full use of the standard Atari Screen Editor * Tab stops for opcode, operand, and comment fields * Fast parameterized renumber and delete command * Uses BASIC like commands for files (eg. LOAD, SAVE, BLOAD etc.) * Labels up to 32
    [Show full text]
  • ATARI Assembler Editor User Manual
    ERROR CODES ERROR ERROR CODE ERROR CODE MESSAGE CODE ERROR CODE MDSSAGE 2 Memory insufficient 142 Serial bus data frame overrLur 3 Value error 143 Serialb us data frame checksume rror 4 Too many variables 144 Device done error s Stdng length error 145 Read after write compare error 6 out of data error 146 Function not implemented ? Number greater tltan 32767 147 Insufficient RAM I Input statement error 160 Drive number error I Array or string DIM error 161 Too many OPEN files 10 Argument stack overflolv 162 Disk iull 11 Floating point overflod 163 Unrecoverable system data I/O e|ro. underflow etror 164 File number mismatch 72 Line not found 165 File name error 13 No matching FOR statement 166 POINT data length error 74 line too long error 167 File locked 15 GOSUBo r FOR line deleted 164 Command invalid 16 RETURNe rror 169 Directory full az Garbagee rror 1?o File not found 1a Invalid string character 171 POINT invalid -lfoter The fouowing are INI'UT/OUTPUT er- rors rhdl rerult during rhe useo f di"k dri!e". prinlerr.o r othera cce.soryd evice\.r uflher in- formation is provided with th€ auxiliary hard' 19 LOAD program too long 20 Device number larger za LOAD file erlor aza BREAK abort 7zs IOCB 13o Nonexistent device 131 IOCBw rite only 132 Invalid command 13J Device of lile not open 7J4 Bad IoCB number 13s IOCBr ead only error 136 EOF 737 Truncated record 13a Device timeout 139 Device NAK 74o Serialb us 117 Cursor out of range ror explmation of Errcr Messges see Appendix 1.
    [Show full text]
  • The History of Atari /|\
    The History of Atari /|\ Presented by: Craig Maloney http://decafbad.net Penguicon 2020 What we’ll cover ● The origins of Atari ● The rise of Atari ● The time Steve Jobs worked at Atari and got Steve Wozniak to do his work for him ● The excesses of Atari ● Atari’s sale to Warner Communications ● The spin-offs (Activision, Imagic, etc.) ● The Video Game Crash ● Atari’s sale to Jack Tramiel and some of the aftermath ● Afterword and additional resources What we won’t cover ● Many of the stories from the developers at the time (not enough time, but will give references) ● Atari Home Games like Stunt Cycle, Video Music, Video Pinball, etc. ● The Atari Portfolio, even though it was a cool machine. ● A deep history of the Atari ST ● Atari Coin-Op / Atari Games, save for a few notable games ● Any Atari game development in great detail (save for a couple of notable exceptions) ● Atari’s contests (Swordquest) ● Atarisoft and Tengen What we’ll conveniently ignore (because it’s just a bunch of folks cashing-in on a beloved brand and that’s boring compared to the real thing) ● Atari Corporation’s sale to JTS, Hasbro, Infogrames and so on ● Atari Games sale to Namco, back to Time Warner, Midway, and so on ● The various Atari bankruptcies, reorganizations, and what-not since the 1980s ● The “Atari Estate” (my term for the company handling branding of merchandise and other “ventures”. Believe me, it’s not pretty). ● Whatever the hell the Atari® VCS™ is. Our story begins... The 1960s By Joi Ito from Inbamura, Japan - Steve "Slug" Russell manipulating PDP-1, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=2099682 By Kenneth Lu - Spacewar!, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=2060215 https://en.wikipedia.org/wiki/Spacewar! By Pretzelpaws - Own work by uploader.
    [Show full text]
  • Mac65/MAC-65 Token Converter.Pdf
    Joyful Atari 24.08.15 11:55 From ANALOG Computing - Issue 60 - May 1988 - Page 27 The MAC/65 De-Tokenizer Convert your tokenized MAC/65 files into plain ol' English by Charles Bachand MAC/65 is an outstanding 6502 macro assembler for the Atari 8-bit computer from Optimized Systems Software, Inc. Our staff, and most of our regular contributors, use it whenever they do any assembly language programming. The cartridge contains one of the fastest assemblers on the market today, and the tokenized source-code files that it generates can save quite a bit of disk space. We highly recommend MAC/65 to anyone doing 6502 machine language software development. However, (you knew that this was coming, didn't you?) the Catch-22 with MAC/65 is that the file format used to save code is not compatible with anything; if you want to use MAC/65 files, you need MAC/65. Or, at least until now, you did. The MAC/65 De- Tokenizer presented here will free you from this requirement. The De-Tokenizer is a small Atari BASIC program that will convert a tokenized MAC/65 file back into readable English - or at least what passes for English from some of the programmers I know. How The MAC/65 De-Tokenizer works To understand the internal workings of The De-Tokenizer program, one must understand the rules by which MAC/65 compresses its files. There are actually two parts to a MAC/65 tokenized file. The first four bytes comprise the file header, which is broken into two parts.
    [Show full text]
  • MAC65 Manual
    MAC/65 (HTML conversion by SysOp Fox-1, November 1999) Note from Fox-1: This manual is based on the DISK-version of the MAC/65 assembler. Text printed on a YELLOW background is additional information taken from the CARTRIDGE-version (Rev 1.2) of the manual of the MAC/65, and is typed up by an anonymous user who feels that this info is useful (like I do) for the ATARI community. The original programs, disks, and manuals comprising MAC/65 are Copyright (c) 1982, 1983 by Optimized Systems Software, Inc. and Stephen D. Lawrow, 1221-B Kentwood Ave. San Jose, CA 95129 USA, Telephone (408) 446-3099 Programming Info Index To Main-Index TABLE OF CONTENTS Preface Trademarks Introduction Start Up Warm Start Back up Copy Syntax Chapter 1 -- The Editor 1.1 General Editor Usage 1.2 TEXT Mode 1.3 EDIT Mode Chapter 2 -- Editor Commands 2.1 ASM 2.2 BLOAD 2.3 BSAVE 2.4 BYE 2.5 C (Change Memory) 2.6 D (Display Memory) 2.x DDT 2.7 DEL 2.8 DOS 2.9 ENTER 2.10 FIND 2.11 LIST 2.12 LOAD 2.13 LOMEM 2.14 NEW 2.15 NUM 2.16 PRINT 2.17 REN 2.18 REP 2.19 SAVE 2.20 SIZE 2.21 TEXT 2.22 ? (hex/dec convert) Chapter 3 -- The Macro Assembler 3.1 Assembler Input 3.2 Instruction Format 3.3 Labels 3.4 Operands 3.5 Operators 3.6 Assembler Expressions 3.7 Operator Precedence 3.8 Numeric Constants 3.9 Strings Chapter 4 -- Directives 4.1 *= 4.2 = 4.3 .= 4.4 .BYTE (and .SBYTE) 4.5 .CBYTE 4.6 .DBYTE 4.x .DS 4.7 .ELSE 4.8 .END 4.9 .ENDIF 4.10 .ERROR 4.11 .FLOAT 4.12 .IF 4.13 .INCLUDE 4.14 .LOCAL 4.15 .OPT 4.16 .PAGE 4.17 .SBYTE (see also .BYTE) 4.18 .SET 4.19 .TAB 4.20 .TITLE 4.21
    [Show full text]
  • Mac/65 Manual Rev
    ..d • reference manual for MAC/6 5 a Macro Assembler and Editor program for use with 6502-based computers built by Atari, Incorporated The programs, disks, and manuals comprising MAC/65 are Copyright (c) 1982, 1983 by Optimized Systems Software, Inc. and Stephen D. Lawrow This manual is Copyright (c) 1982, 1984 by Optimized Systems Software, Inc., of 1173-0 Saratoga Sunnyvale Rd. San Jose, California, 95129 Telephone (408) 446-3099 Pev 1.2P All rights reserved. Reproduction or translation of any part of this work beyond that permitted by sections 107 and 108 of the United States Copyright Act without the permission of the copyright owner is unlawful. •••"\s, PREFACE TABLE OF CONTENTS MAC/65 is a logical upgrade from the OSS product EASMD (Edit/ASseMble/Debug) which was itself an outgrowth of Introduction 1 Start Up the Atari Assembler/Editor cartridge. Users of either of 2 ' Warm Start 2 these latter two products will find that MAC/65 has a Syntax 3 very familiar 'feel'. Those who have never experienced • previous OSS products in this line should nevertheless Chapter 1 -- The Editor 5 find MAC/65 to be an easy-to-use, powerful, and adaptable 1.1 General Editor Usage 5 programming environment. While speed was not necessarily 1.2 TEXT Mode 6 the primary goal in the production of this product, we 1.3 EDIT Mode • nevertheless feel .that the user will be hard pressed to find a faster assembler system in any home computer Chapter 2 -- Editor Commands 9 market. MAC/65 is an excellent match for the size and 2.1 ASH Assemble 10 features of the machines it is intended for.
    [Show full text]
  • ATARI Assembler Editor User's Manual With
    ERROR CODES ERROR ERROR CODE ERROR CODE MESSAGE CODE ERROR CODE MESSAGE 2 Memory insufficient 142 Serial bus data frame overrun 3 Value error 143 Serial bus data frame checksum error 4 Too many variables 144 Device done error 5 String length error 145 Read after write compare error 6 Out of data error 146 Function not implemented 7 Number greater than 32767 147 Insufficient RAM 8 Input statement error 160 Drive number error 9 Array or string DIM error 161 Too many OPEN files 10 Argument stack overflow 162 Disk full 11 Floating point overflow/ 163 Unrecoverable system data 1/0 error underflow error 164 File number mismatch 12 Line not found 165 File name error 13 No matching FOR statement 166 POINT data length error 14 line too long error 167 File locked 15 GOSUB or FOR line deleted 168 Command in valid � 16 RETURN error 169 Directory full 17 Garbage error 170 File not found 18 Invalid string character 171 POINT invalid Note: The following are INPUT/OUTPUT er­ rors that result during the use of disk drives, printers, or other accessory devices. Further in­ formation is provided with the auxiliary hard­ ware. 19 LOAD program too long 20 Device number larger 21 LOAD file error 128 BREAK abort 129 IOCB 130 Nonexistent device 131 IOCB write only 132 Invalid command 133 Device or file not open 134 Bad IOCB number 135 IOCB read only error 136 EOF 137 Truncated record 138 Device timeout 139 Device NAK 140 Serial bus 141 Cursor out of range For explanation of Error Messages see Appendix 1.
    [Show full text]