On 2010-04-30, at 15:07, Payton Byrd wrote: > > > What is the correct way to determine if a drive exists on the IEC bus? I am not sure if this is "the correct" way but I've been doing something like: check_device: tax jsr open_status_channel bcs error_checking_device ldx #$0f jsr CHKOUT bcs error_checking_device lda #'U' jsr CHROUT lda #'I' jsr CHROUT lda #$0d jsr CHROUT jsr CLRCHN lda #< status_message_buffer ldy #> status_message_buffer sec jsr read_status_channel jsr close_status_channel jmp recognise_identity_string error_checking_device: jsr close_status_channel jsr CLRCHN lda #$00 tax sta status_message_buffer,x rts -- SD! ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Apr 30 17:18:07 2010
This archive was generated by hypermail 2.1.8 : 2010-04-30 17:18:10 CEST