[cc65] ca65 ascii translation

From: Chris Cureau <cmcureau1gmail.com>
Date: 2011-12-16 19:44:40
Everyone,

I'm running a bit of code here which should work, from all I can see...but
it isn't.  I'm wondering if ca65 is translating it incorrectly?

Not shown is readerr, which simply reads and prints the error channel.
 When I run the code, it reports a 73 (as I would expect from a reset
drive), then a 62, FILE NOT FOUND.  The drive should open "#" as a
buffer...am I doing something wrong?

Thanks in advance,
Chris Cureau

code:

;        set up command channel
        lda #15                 ;logical file number 15
        ldx #8                  ;device 8
        ldy #15                 ;secondary address 15
        jsr SETLFS              ;set LA, FA, SA
        lda #0                  ;zero length file name
        jsr SETNAM
        jsr OPEN                ;open command channel
        jsr readerr

;        set up for random access
        lda #2           ;logical file number 5
        ldx #8           ;device 8
        ldy #2           ;secondary address 5
        jsr SETLFS       ;set LA, FA, SA
        lda #1
        ldx #>buffer
        ldy #<buffer     ;set file name
        jsr SETNAM
        jsr OPEN         ;open command channel
        jsr readerr
...
; data
buffer:
        .byte "#"
drvcmd:
        .byte "U1 2 0 18 1"
endcmd:

----------------------------------------------------------------------
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 Dec 16 19:44:52 2011

This archive was generated by hypermail 2.1.8 : 2011-12-16 19:44:55 CET