mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
Correcting spaces
This commit is contained in:
parent
858e952505
commit
06b2b83ab2
@ -12,7 +12,6 @@
|
||||
; int read (int fd, void* buf, unsigned count);
|
||||
|
||||
.proc _read
|
||||
|
||||
sta ptr1 ; count
|
||||
stx ptr1+1 ; count
|
||||
jsr popax ; get buf
|
||||
@ -35,13 +34,8 @@
|
||||
lda PTR_READ_DEST
|
||||
sec
|
||||
sbc ptr2
|
||||
|
||||
|
||||
|
||||
; Here A and X contains number of bytes read
|
||||
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
@ -105,7 +105,7 @@ CH376_DISK_RD_GO := $55
|
||||
loop:
|
||||
lda (ptr1),y ; replace by bufnom
|
||||
beq end ; we reached 0 value
|
||||
;BRK_TELEMON XMINMA
|
||||
BRK_TELEMON XMINMA
|
||||
sta CH376_DATA
|
||||
iny
|
||||
cpy #13 ; because we don't manage longfilename shortname =11
|
||||
@ -121,18 +121,17 @@ end:
|
||||
lda #CH376_FILE_OPEN ; $32
|
||||
sta CH376_COMMAND
|
||||
jsr _ch376_wait_response
|
||||
; ldx #0
|
||||
rts
|
||||
.endproc
|
||||
|
||||
;CMD_GET_FILE_SIZE
|
||||
|
||||
|
||||
.proc _ch376_get_file_size
|
||||
lda #CH376_GET_FILE_SIZE
|
||||
sta CH376_COMMAND
|
||||
lda #$68
|
||||
sta CH376_DATA
|
||||
; store file leng
|
||||
; store file length 32 bits
|
||||
lda CH376_DATA
|
||||
sta tmp1
|
||||
lda CH376_DATA
|
||||
@ -297,9 +296,7 @@ next:
|
||||
finished:
|
||||
; TODO return bytes read
|
||||
lda tmp1
|
||||
|
||||
ldx tmp1+1
|
||||
|
||||
rts
|
||||
.endproc
|
||||
|
||||
@ -346,26 +343,7 @@ loop:
|
||||
sta CH376_DATA ; read the data
|
||||
dec tmp2
|
||||
bne loop
|
||||
; dec ptr2
|
||||
;bne continue3
|
||||
;dec ptr2+1
|
||||
;bne continue3
|
||||
;continue3
|
||||
; lda ptr2+1
|
||||
;bne continue2
|
||||
;lda ptr2
|
||||
;beq finished
|
||||
;continue2
|
||||
; iny
|
||||
; cpy tmp2
|
||||
; bne loop
|
||||
; tya
|
||||
; clc
|
||||
; adc PTR_READ_DEST
|
||||
; bcc next
|
||||
; inc PTR_READ_DEST+1
|
||||
;next:
|
||||
; sta PTR_READ_DEST
|
||||
|
||||
|
||||
lda #CH376_BYTE_WR_GO
|
||||
sta CH376_COMMAND
|
||||
@ -380,8 +358,6 @@ finished:
|
||||
rts
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
.proc _ch376_file_create
|
||||
lda #CH376_FILE_CREATE
|
||||
sta CH376_COMMAND
|
||||
|
Loading…
Reference in New Issue
Block a user