English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 20 June 2019, 00:06   #1
This cat is no more
jotd's Avatar
Join Date: Dec 2004
Location: FRANCE
Age: 47
Posts: 3,149
is CIA port A bit 1 (filter) readable?

in some game I saw:

    TST.B    some_flag     
    BEQ.S    LAB_0598   
    BSET    #1,CIAA_PRA   
    BRA.S    LAB_0599   
    BCLR    #1,CIAA_PRA   

but is it possible to just toggle it ?:


I suppose that all (except 6 & 7 maybe) bits are readable as BSET/BCLR already read the whole byte to just change 1 bit. Is that bit readable too?
jotd is offline  
Old 20 June 2019, 01:20   #2
Thomas Richter
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 237
Originally Posted by jotd View Post
Is that bit readable too?
Yes. CIA port bits are both read and write at the same address, unlike the custom chips where the direction is implicit in the address.
Thomas Richter is offline  
Old 07 July 2019, 22:44   #3

Photon's Avatar
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,700
I have assumed no, since I've seen code that saves and restore hardware registers but not the state of this bit. Interesting.

Probably some structure in audio.device or elsewhere can be used to get the last state set by some library call, though?
Photon is offline  
Old 08 July 2019, 08:05   #4
Thomas Richter
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 237
Unfortunately, operating system support for this bit is zero. There is nothing, nowhere.
Thomas Richter is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fairlight - A brilliant 8-bit Isometric Adventure gets an Atari XL/XE port! Neil79 Retrogaming General Discussion 0 28 December 2016 18:03
Wanted: Micodeal Clarity external 16 bit Sampler and MIDI port adapter Crom MarketPlace 0 05 November 2016 13:28
hardfile not readable anymore honx support.WinUAE 16 04 November 2016 12:52
example of a CIA timer interrupt in assembler using cia.resource Apollo Coders. Asm / Hardware 3 05 July 2013 08:40
Serial Port Emulation; 9-bit mode Borg_Number_One support.WinUAE 14 04 August 2006 18:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:37.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06071 seconds with 15 queries