From: Cameron Kaiser (spectre_at_floodgap.com)
Date: 2004-08-25 03:26:02
> The attached asm, I would expect to behave the same way. Instead, HI > THERE is printed to the console, and the drive complains of a syntax > error. Any ideas? Yup ^^ This is your open1,8,15,"i0" routine (which looks correct). > ;-------------------------------------------------; > ; open 1,8,15,"I0" ; > ;-------------------------------------------------; > > opendisk: > lda #1 ; logical file number > ldx #8 ; drive > ldy #15 ; cmd channel > jsr setlfs > lda #2 ; strlen - should be 2 or 0 > ldx #<i0str > ldy #>i0str > jsr setnam > jmp open This is your open2,8,2,"#" routine: > ;-------------------------------------------------; > ; open 2,8,2,"#" ; > ;-------------------------------------------------; > > opendata: > lda #1 ; logical file number > ldx #8 ; drive > ldy #15 ; cmd channel > jsr setlfs > lda #2 ; strlen - should be 2 or 0 > ldx #<hashstr > ldy #>hashstr > jsr setnam > jmp open Why are you using 1, 8, 15 for setlfs? ;) -- ---------------------------------- personal: http://www.armory.com/~spectre/ -- Cameron Kaiser, Floodgap Systems Ltd * So. Calif., USA * ckaiser@floodgap.com -- Artificial intelligence is no match for natural idiocy. -------------------- Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.