Hi, On Fri, 23 Dec 2005, Shawn Jefferson wrote: > The open_dir seems to work (returns 1 anyway!), but > read_dir_entry doesn't... I couldn't find (or > understand) how to use the Get Record CIOV call. Then why did you use the Get Record call? I got your example to work with the Get Character call. Please see the appended patch. I will try to implement standard opendir/readdir/closedir in the future, but probably not too soon. The christmas vacation is already planned for other things... regards, chris ----------------- @@ -17,16 +17,15 @@ iocbok: stx diriocb jsr clriocb + ldx diriocb lda tmp1 sta ICBAL,x lda tmp2 sta ICBAH,x lda #OPEN sta ICCOM,x - lda #4 + lda #OPNIN|DIRECT sta ICAX1,x - lda #6 - sta ICAX2,x jsr CIOV bmi cioerr lda #0 @@ -36,6 +35,7 @@ cioerr: jmp __do_oserror _close_dir: lda #CLOSE + ldx diriocb sta ICCOM,x jsr CIOV rts @@ -46,6 +46,7 @@ lda diriocb tax lda #5 + lda #GETCHR sta ICCOM,x lda ptr1 sta ICBAL,x ----------------- ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Dec 26 18:16:45 2005
This archive was generated by hypermail 2.1.8 : 2005-12-26 18:16:48 CET