Altirra Hardware Reference Manual 2020-10-23 Edition Avery Lee Altirra Hardware Reference Manual Created by Avery Lee

Total Page:16

File Type:pdf, Size:1020Kb

Altirra Hardware Reference Manual 2020-10-23 Edition Avery Lee Altirra Hardware Reference Manual Created by Avery Lee Altirra Hardware Reference Manual 2020-10-23 Edition Avery Lee Altirra Hardware Reference Manual Created by Avery Lee Table of Contents 1.1 . Introduction .............................................................................................................................................. 9 1.2 . What's new in this edition ...................................................................................................................... 10 1.3 . Conventions in this manual .................................................................................................................... 14 1.4 . Concepts ................................................................................................................................................ 15 2 . CPU .............................................................................................................................................................. 18 2.1 . Registers ................................................................................................................................................ 19 2.2 . Decimal mode ........................................................................................................................................ 19 2.3 . Cycle timing ........................................................................................................................................... 20 2.4 . Interrupts ................................................................................................................................................ 22 2.5 . Undocumented instructions ................................................................................................................... 25 2.6 . 65C02 compatibility ............................................................................................................................... 28 2.7 . 65C816 compatibility ............................................................................................................................. 30 2.8 . 65C816 new features ............................................................................................................................. 31 2.9 . Examples ............................................................................................................................................... 33 2.10 . Further reading .................................................................................................................................... 34 3 . System control .............................................................................................................................................. 35 3.1 . System Reset button ............................................................................................................................. 36 3.2 . Peripheral Interface Adapter (PIA) ......................................................................................................... 36 3.3 . Memory system ..................................................................................................................................... 38 3.4 . Bank switching ....................................................................................................................................... 40 3.5 . Extended memory .................................................................................................................................. 40 3.6 . Miscellaneous connections .................................................................................................................... 43 3.7 . Examples ............................................................................................................................................... 43 3.8 . Further reading ...................................................................................................................................... 44 4 . ANTIC ........................................................................................................................................................... 45 4.1 . Basic operation ...................................................................................................................................... 46 4.2 . Display timing ........................................................................................................................................ 47 4.3 . Playfield ................................................................................................................................................. 48 4.4 . Character modes ................................................................................................................................... 49 4.5 . Mapped (bitmap) modes ........................................................................................................................ 51 4.6 . Display list .............................................................................................................................................. 52 4.7 . Scrolling ................................................................................................................................................. 55 4.8 . Non-maskable interrupts ........................................................................................................................ 60 4.9 . WSYNC ................................................................................................................................................. 62 4.10 . VCOUNT .............................................................................................................................................. 64 4.11 . Playfield DMA ....................................................................................................................................... 64 4.12 . Abnormal playfield DMA ....................................................................................................................... 66 4.13 . Player/missile DMA .............................................................................................................................. 71 4.14 . Scan line timing ................................................................................................................................... 71 4.15 . Cycle counting example ....................................................................................................................... 82 4.16 . Examples ............................................................................................................................................. 84 4.17 . Further reading .................................................................................................................................... 85 5 . POKEY ......................................................................................................................................................... 86 5.1 . Addressing ............................................................................................................................................. 87 5.2 . Initialization ............................................................................................................................................ 87 5.3 . Sound generation .................................................................................................................................. 87 5.4 . Serial port .............................................................................................................................................. 90 5.5 . Clock generation .................................................................................................................................... 98 5.6 . Noise generators ................................................................................................................................... 98 5.7 . Interrupts ................................................................................................................................................ 99 - 2 Altirra Hardware Reference Manual Created by Avery Lee 5.8 . Keyboard scan ..................................................................................................................................... 101 5.9 . Paddle scan ......................................................................................................................................... 105 5.10 . Examples ........................................................................................................................................... 106 5.11 . Further reading ................................................................................................................................... 107 6 . CTIA/GTIA .................................................................................................................................................. 108 6.1 . Color encoding ..................................................................................................................................... 109 6.2 . Artifacting .............................................................................................................................................. 111 6.3 . Player/missile graphics ........................................................................................................................ 113 6.4 . Collision detection ...............................................................................................................................
Recommended publications
  • Atari Game Systems and Atari Computers for the Index Page / Site Listing
    Best Electronics Specializing in Replacement Parts and Accessories for all Consumer Based Atari Game Systems and Atari Computers for the Index page / Site listing One of the more common Atari Questions / E-Mails we get, do you really have that Atari part or Atari item in stock. I have checked the world wide Internet and you are the only one that lists it? I noticed that your that your Atari web page(s) have not been updated (bottom of each Best Web page has a last updated date) for weeks, months or years? When we cleared out the local Atari Sunnyvale Warehouses here over a 10 to 15 year period, we hauled in thousands and thousands of Pallets of Atari Goods. Some Atari items we have a lifetime supply of (hence why the Best Atari web page for that product never gets updated) and other Atari items have sold out fast to the world wide Atari users and collectors. Bests Atari Hall of fame A little background into why Best Electronics was started 35 years ago and a short list of Best Exclusive made Atari Products, Atari Upgrade kits, Replacement and Upgraded Atari parts Best has developed / produced in the last 35 years in the Atari business. See why some of the Best made exclusive Atari items and stock Atari products we carry, even show up on E- Bay after they are purchased direct from Best Electronics and resold with a big mark up by E-bay Atari sellers! All Atari World Wide Atari CX78 JoyPad Owners! On June 17, 2019 after 16+ months work, Best has released a CX78 Upgrade Gold Kit that will fix / cure the known Atari CX78 JoyPad problems that causes them to fail early and it also Enhances / Upgrades the stock Atari made CX78 JoyPad features / functions! On June 17, 2019 Best released another Upgraded Atari replacement part.
    [Show full text]
  • Graphical Process Unit a New Era
    Nov 2014 (Volume 1 Issue 6) JETIR (ISSN-2349-5162) Graphical Process Unit A New Era Santosh Kumar, Shashi Bhushan Jha, Rupesh Kumar Singh Students Computer Science and Engineering Dronacharya College of Engineering, Greater Noida, India Abstract - Now in present days every computer is come with G.P.U (graphical process unit). The graphics processing unit (G.P.U) has become an essential part of today's mainstream computing systems. Over the past 6 years, there has been a marked increase in the performance and potentiality of G.P.U. The modern G.P.Us is not only a powerful graphics engine but also a deeply parallel programmable processor showing peak arithmetic and memory bandwidth that substantially outpaces its CPU counterpart. The G.P.U's speedy increase in both programmability and capability has spawned a research community that has successfully mapped a broad area of computationally demanding, mixed problems to the G.P.U. This effort in general-purpose computing on the G.P.Us, also known as G.P.U computing, has positioned the G.P.U as a compelling alternative to traditional microprocessors in high-performance computer systems of the future. We illustrate the history, hardware, and programming model for G.P.U computing, abstract the state of the art in tools and techniques, and present 4 G.P.U computing successes in games physics and computational physics that deliver order-of- magnitude performance gains over optimized CPU applications. Index Terms - G.P.U, History of G.P.U, Future of G.P.U, Problems in G.P.U, eG.P.U, Integrated graphics ________________________________________________________________________________________________________ I.
    [Show full text]
  • HW 5 A2D, Serial, and Time Calculations CENG 5434 Fall 2017 Due 10/16
    HW 5 A2D, Serial, and Time Calculations CENG 5434 Fall 2017 Due 10/16 To Go Over In Class. Remember to show all your calculations! Problem 1 10 Points We can state A/D resolution in many ways. For example, the resolution of an n bit A/D converter is given by V V = full-scale value . resolution 2n For an 8-bit A/D with a 5 volt, full-scale range 1. What is the resolution in millivolts? 2. What is the resolution in terms of the % of full-scale value? . Problem 2 10 Points Suppose an A/D converter has a conversion time of 100 µ seconds. 1. What is the sampling frequency? 2. What is the highest frequency that can be sampled without aliasing? . 1 Problem 3 20 Points To choose an A/D converter and program it, we need to know the resolution (number of bits), the sampling rate (time between samples) and the number of points to sample (duration of the sampling period). Assume a sensor outputs .05 ◦ ◦ volts/ C with a range of up to 100 C. How many bit A/D converter is needed ◦ to get a resolution of 0.1 C? . Problem 4 20 Points Suppose we wish to compute the Fourier Transform (FFT)of a signal. We choose the sampling rate based on how fast the sampled signal can change and the duration of sampling based on the resolution in frequency. Note that the A/D is normally programmed to sample every Ts seconds and take N samples. Then, NTs determines the period of each frame of sampling and hense the resolution in frequency as ∆f =1/NTs 1.
    [Show full text]
  • To Some People a DOS Is Just for Loading Games
    THE COMPLETE SPARTADOS CONSTRUCTION SET MANUAL PREFACE The SpartaDOS Construction Set What is a DOS? To some people a DOS is just for loading games. For others it is the framework for programming. Some even believe it is a silent manager that should never be seen. All of these are probably true. Different people want different things from a DOS just as they have different reasons for owning a computer. If you own an Atari 8 bit computer you are in luck! ICD has created the SpartaDOS Construction Set. This one system, complete with useful utilities, choice of menu or command operation, even special memory efficient XL/XE versions with provisions for Ramdisk on the 130XE. SpartaDOS is the DOS for the future with support for any Atari compatible disk drive including future add on hard disks. It is the only DOS for 8 bit Atari computers that, as of this writing, supports single, dual (enhanced) AND double density. SpartaDOS won't become obsolete just because a new drive comes out. Learn to use SpartaDOS NOW because it will last a long, long time. What this Set will do for you. The SpartaDOS construction set is the culmination of two major versions and several SpartaDOS types with many powerful utilities. This provides you, the user, with the building blocks for creating your own DOS disks. By working through this manual, you will learn the uses and requirements for: each DOS type, the commands and the utility files. This should leave you with the fundamental knowledge needed to decide which DOS, if any, to use and which utilities are needed on which disks.
    [Show full text]
  • Serial Data Transfer Schemes
    Microprocessors and Microcontrollers P a g e | 1 UNIT-5 SERIAL DATA TRANSFER SCHEMES SERIAL COMMUNICATION INTRODUCTION Serial communication is common method of transmitting data between a computer and a peripheral device such as a programmable instrument or even another computer. Serial communication transmits data one bit at a time, sequentially, over a single communication line to a receiver. Serial is also a most popular communication protocol that is used by many devices for instrumentation. This method is used when data transfer rates are very low or the data must be transferred over long distances and also where the cost of cable and synchronization difficulties makes parallel communication impractical. Serial communication is popular because most computers have one or more serial ports, so no extra hardware is needed other than a cable to connect the instrument to the computer or two computers together. SERIAL AND PARALLEL TRANSMISSION Let us now try to have a comparative study on parallel and serial communications to understand the differences and advantages & disadvantages of both in detail. We know that parallel ports are typically used to connect a PC to a printer and are rarely used for other connections. A parallel port sends and receives data eight bits at a time over eight separate wires or lines. This allows data to be transferred very quickly. However, the setup looks more bulky because of the number of individual wires it must contain. But, in the case of a serial communication, as stated earlier, a serial port sends and receives data, one bit at a time over one wire.
    [Show full text]
  • Számítógép Örökzöldek
    FÜZETEK XVI. RETRÓ Számítógép örökzöldek Számítógép örökzöldek tartalom 4 MITS Altair 8800 6 Apple I 8 Apple II 10 Tandy Radio Shack (TRS-80) 12 Atari 800 14 Texas TI-99/4A 8 16 Commodore B128-80 18 Amstrad CPC 6128 20 Philips VG-8010 28 22 Sinclair QL 24 Atari 130XE 26 HT PTA-4000 +16 28 Azok a nyolcvanas évek! Neoretró 38 C64 Reloaded 39 CBM Program Studio 38 40 ZX-UNO 41 Enterprise 128 SD-adapter 42 Videoton TV Computer SD-illesztő 43 Maximite BasicBoxx Computer 44 divIDE után divMMC 60 45 Sinclair ZX Spectrum Vega 46 Turbo Chameleon 64 47 VBXE 2.1 for Atari Online-nemzedék 48 Online nemzedék 2 Retró 60 Az iWiW-sztori IMPRESSZUM SZERKESZTőSÉG Főszerkesztő: Molnár József Főszerkesztő-helyettes: Erdős Márton Szerkesztő: Egri Imre, Kudella Magdolna Olvasószerkesztő: Cseh Vanda Egri Imre szerkesztő Munkatársaink: Dávid Imre, Jancsó Orsolya Tördelő grafikus: Berényi Teréz Szerkesztőségi titkár: Cseresznye Anita Kedves Olvasónk! Telefon: 577-4301; telefax: 266-4343; Internet: pcworld.hu; A retróhullám erősödésével (ezt régen e-mail: [email protected] nosztalgiának hívták) egyre több- ször hallani, hogy a személyi szá- KIADÓ Kiadja a Project 029 Media & Communications Kft. mítógépek hőskorában mennyivel 1036 Budapest, Lajos u. 78. IV. em. jobb volt. Magam nem osztom ezt a Levélcím: 1374 Budapest 5, Pf. 578; nézetet, de az állandó frissítéseket, internet: project029.com kötelező újraindításokat, vírusokat, Bankszámlaszám: kompatibilitási gondokat, internetes 10300002-20328016-70073285 Felelős kiadó: közösségi őrületet és a gyártók piaci Virágh Márton ügyvezető – [email protected] trükközéseit látva mégis jól esik Operatív igazgató: visszatekinteni egy olyan korszakba, Babinecz Mónika – [email protected] amikor még pontosan azt csinálta Marketingmenedzser: a gép (és csak azt), amire utasítot- Kovács Judit – [email protected] ták.
    [Show full text]
  • Subject: Atari 8-Bit Computers: Frequently Asked
    Subject: Atari 8-Bit Computers: Frequently Asked Questions Posted by Michael Current on Mon, 06 Feb 2012 05:29:16 GMT View Forum Message <> Reply to Message From Newsgroup: comp.sys.atari.8bit Archive-name: atari-8-bit/faq Posting-Frequency: 60 days Last-modified: January 15, 2012 Welcome to the comp.sys.atari.8bit newsgroup! Atari 8-Bit Computers Frequently Asked Questions List ___________ _______________ | ///////// | _____________ | ||||||||||| | |___________| | | | ||_______|| | |______/////| |____[---]____| | / _________ \ | |LLLLLLLLLLL| |LLLLLLLLLLL || | LLLLLLLLLLL L | |LLLLLLLLLLL| |LLLLLLLLLLL || | LLLLLLLLLLL L | |__[_____]__| |__[_____]____| |___[_____]_____| 130XE 800XL 800 ___________ __---------__ | ///////// | | / _____ \ | |___________| _____________ | / |_____| \ | |______/////| |____[---]____| | ___________ | |LLLLLLLLLLL| |LLLLLLLLLLL || | ========== =| |LLLLLLLLLLL| |LLLLLLLLLLL || | ========== =| |__[_____]__| |__[_____]____| |___[_____]___| 65XE 600XL 400 ___________ _____________ | ///////// | ___________ | | |___________| |/// / | | | |______/////| |// / | /\___________ |=============| |LLLLLLLLLLL| |/O\ |\/ |LLLLLLLLLLL| | LLLLLLLLLLL | |LLLLLLLLLLL| |-----------| |LLLLLLLLLLL| | LLLLLLLLLLL | |__[_____]__| |____O_O_O_O| |__[_____]__| |___[_____]___| 800XE XE 1200XL Additions/suggestions/comments/corrections are needed! Please send to: Michael Current, [email protected] Copyright (c) 1992-2012 by Michael D. Current, and others where noted. Feel free to reproduce this file, in whole or in part, so long as the
    [Show full text]
  • Ironman Atari - a Compilation of Advanced Atari 8-Bit Programming Techniques# by Mark Schmelzenbach
    Ironman Atari - A Compilation of Advanced Atari 8-bit Programming Techniques# by Mark Schmelzenbach Table of Contents • Ironman Atari - A Compilation of Advanced Atari 8-bit Programming Techniques • Introduction • Programming Environment • Hardware • Assemblers • Compilers • Graphics editors • Sound editors • Emulators • Graphics Modes • Introduction • Splitting modes vertically • HIP/RIP • TIP • GTIA 9++ • MCS • Graphics Links and Resources • Scrolling techniques • MWP • Hardware-assisted Parallax Scrolling • Scrolling by Half-steps • Using the mouse • Pushing POKEY • Digital samples • Digital Sample Links and Resources • Trackers • RMT • TMC2 • Soft Sprites • Bitmap sprites • Character sprites • Advanced Player/Missile Use • ORA overlapping for color • GTIA Gr. 9 overlay • Reusing players • Collision detection • File Access • xBIOS • Advanced Graphical Tools • Rastconverter • Hardware exotics • Accessing additional memory • Double POKEY • Double GTIA • Video Board XE • Ironman Contributors Introduction# Welcome to "Ironman Atari", a collection of articles detailing new techniques in Atari 8-bit programming. Although the golden Age for Atari has long passed, several new programming methods have been discovered or rediscovered over the past decade. These new methods push and twist classic Atari iron in ways that might have surprised even Jay Miner himself. Today, the internet provides a forum that allows people to share information in a manner unsurpassed in the past. This is a compilation of articles gathered for the purpose of preserving this knowledge for future programmers. Who knows? In another 25 years, there may still be people hacking away on their trusty Atari computers. Many of the articles here have been gathered from a variety of sources, including USENET, user forums and solicited articles. Wherever possible credit has been given to the original authors.
    [Show full text]
  • Altirra Hardware Reference Manual
    Altirra Hardware Reference Manual by Avery Lee Version: 04/27/14 Altirra Hardware Reference Manual Created by Avery Lee Table of Contents 1.1. Introduction.................................................................................................................................................... 6 1.2. What's new in this edition.............................................................................................................................. 7 1.3. Conventions in this manual........................................................................................................................... 9 1.4. Basic characteristics................................................................................................................................... 10 2. CPU..................................................................................................................................................................... 13 2.1. Registers..................................................................................................................................................... 14 2.2. Decimal mode............................................................................................................................................. 14 2.3. Cycle timing................................................................................................................................................. 15 2.4. Interrupts....................................................................................................................................................
    [Show full text]
  • Lecture Notes Microprocessors And
    LECTURE NOTES ON MICROPROCESSORS AND INTERFACING DEVICES III B. Tech II semester (JNTUH-R15) Mr.R Mahendhar Reddy, Associate Professor, ECE ELECTRICAL AND ELECTRONICS ENGINEERING INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS) DUNDIGAL, HYDERABAD - 500 043 Syllabus: JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD L T/ /P/D C III Year B.Tech. ECE -II Sem 4 -/-/- 4 MICROPROCESSORS AND INTERRFACING DEVICES UNIT – I 8086 MICROPROCESSOR: 8086 architecture- Functional Diagram, Register Organization, Memory segmentation, Memory addresses, physical memory organization, Signal descriptions of 8086-common function signals, Minimum and Maximum mode signals, Read Write cycles, Timing diagrams, Interrupt structure of 8086. UNIT – II ASSEMBLY LANGUAGE PROGRAMMING OF 8086: Instruction formats, addressing modes, instruction set, assembler directives, macros, Simple programs involving logical, branch and call instructions, Sorting, evaluating arithmetic expressions, string manipulations. UNIT – III PERIPHERAL INTERFACING WITH 8086 MICROPROCESSOR: 8255 PPI, Keyboard, display controllers, Stepper motor, A/D & D/A Converter Interfacing with 8086 microprocessor. Static and Dynamic memories, Vector interrupt table, Interrupt service routine, Introduction to DOS & BIOS interrupts, Programmable Interrupt Controller 8259, DMA controller 8257 Interfacing with 8086 microprocessor. UNIT – IV COMMUNICATION INTERFACE: Serial communication standards, serial data transfer schemes, 8251 USART architecture and Interfacing, RS- 232, IEEE-488, prototyping and trouble shooting. UNIT – V INTRODUCTION TO MICROCONTROLLERS: Overview of 8051 microcontroller, Architecture, I/O ports and Memory organization, addressing modes and instruction set of 8051, Simple programs. UNIT-I 8086 ARCHITECTURE Introduction to processor: A processor is the logic circuitry that responds to and processes the basic instructions that drives a computer. The term processor has generally replaced the term central processing unit (CPU).
    [Show full text]
  • Atari 8-Bit Computers
    Subject: Atari 8-Bit Computers: Frequently Asked Questions Posted by Michael Current on Wed, 05 Jun 2013 04:53:26 GMT View Forum Message <> Reply to Message Archive-name: atari-8-bit/faq Posting-Frequency: 60 days Last-modified: June 1, 2013 Welcome to the comp.sys.atari.8bit newsgroup! Atari 8-Bit Computers Frequently Asked Questions List ___________ _______________ | ///////// | _____________ | ||||||||||| | |___________| | | | ||_______|| | |______/////| |____[---]____| | / _________ \ | |LLLLLLLLLLL| |LLLLLLLLLLL || | LLLLLLLLLLL L | |LLLLLLLLLLL| |LLLLLLLLLLL || | LLLLLLLLLLL L | |__[_____]__| |__[_____]____| |___[_____]_____| 130XE 800XL 800 ___________ __---------__ | ///////// | | / _____ \ | |___________| _____________ | / |_____| \ | |______/////| |____[---]____| | ___________ | |LLLLLLLLLLL| |LLLLLLLLLLL || | ========== =| |LLLLLLLLLLL| |LLLLLLLLLLL || | ========== =| |__[_____]__| |__[_____]____| |___[_____]___| 65XE 600XL 400 ___________ _____________ | ///////// | ___________ | | |___________| |/// / | | | |______/////| |// / | /\___________ |=============| |LLLLLLLLLLL| |/O\ |\/ |LLLLLLLLLLL| | LLLLLLLLLLL | |LLLLLLLLLLL| |-----------| |LLLLLLLLLLL| | LLLLLLLLLLL | |__[_____]__| |____O_O_O_O| |__[_____]__| |___[_____]___| 800XE XEgs 1200XL Additions/suggestions/comments/corrections are needed! Please send to: Michael Current, [email protected] Library Department, University of Wisconsin-La Crosse Copyright (c) 1992-2013 by Michael D. Current, and others where noted. Feel free to reproduce this file, in whole or in part,
    [Show full text]
  • Emulating and Enhancing Real Atari 8-Bit Hardware Using Linux
    Atari 8-bits & Linux EmulatingEmulating andand enhancingenhancing realreal AtariAtari 8-bit8-bit hardwarehardware usingusing LinuxLinux BillBill KendrickKendrick LinuxLinux Users'Users' GroupGroup ofof DavisDavis AugustAugust 19,19, 20132013 What were they? Overview ● 1979 – 1992 ● Similarities to Atari VCS (2600) before it, and Commodore Amiga after it (Jay Miner involved in all three) ● 6502 8-bit CPU @ 1.79MHz ● 64KB RAM (expandable to 4MB), 10KB OS ROM ● Cartridge slot (lots of games!) ● Serial I/O with daisy-chain support (Later models included Parallel Bus Interface) ● Cassette, floppy disk ($) and hard drive ($$$) storage What were they? Gfx & Sfx ● 4-channel mono sound (8-channel stereo hacks exists) ● Graphics reat graphics (for those days) – Various bitmapped & text modes with user-definable character sets (fonts) ● 320x192 high resolution monochrome ● 40x24 thru 160x192 4-color bitmap modes ● 40x24 mono and multicolor character modes ● 20x24, 20x12 color, but not-multicolor char ● Coarse & fine scrolling ● Graphics chip has Direct Memory Access; can be changed on a per-scanline basis (e.g., part of the screen scrolls through a larger area, the rest stays static) ● Modes can be set on a per-scanline basis (Display List) (e.g., graphics with a text 'window' at the bottom) ● Per-scanline interrupts can be set (Display List Interrupts) (e.g., change color palette, change font, reposition sprite, change scroll values, etc.) – “Player/Missile Graphics” (aka sprites); overlay, underlay, mix ● Hardware collision detection – 128 color palette; 256 possible – What were they? Photos! What were they used for? ● Games ● Education ● Home office ● Programming ● Games Emulating on Linux ● Atari800 - http://atari800.sourceforge.net/ ● MESS - http://www.mess.org/ ● JavaScript MESS (beta) http://jsmess.textfiles.com/messbeta.html?module=a800 ● Windows-based emulators (under virtualization) might work too! – Altirra - http://www.virtualdub.org/altirra.html – Atari800Win PLus - http://atariarea.krap.pl/PLus/index_us.htm ● Many more..
    [Show full text]