remove extra spaces

This commit is contained in:
mrdudz
2022-08-28 22:37:33 +02:00
parent 54aff47513
commit df4b6f9d14
31 changed files with 51 additions and 51 deletions

View File

@@ -16,8 +16,8 @@
; */
___directerrno:
jsr ___seterrno ; Set errno (returns with .A = 0)
sta ___oserror ; Clear ___oserror
jsr ___seterrno ; Set errno (returns with .A = 0)
sta ___oserror ; Clear ___oserror
.if (.cpu .bitand CPU_ISET_65SC02)
dec a
.else

View File

@@ -69,7 +69,7 @@
invmode:
lda #EINVAL
jsr ___seterrno ; Set __errno, returns zero in A
jsr ___seterrno ; Set __errno, returns zero in A
tax ; a/x = 0
jmp incsp4

View File

@@ -19,11 +19,11 @@
; */
___mappederrno:
sta ___oserror ; Store the error code
sta ___oserror ; Store the error code
tax ; Did we have an error?
bze ok ; Branch if no
jsr ___osmaperrno ; Map OS error into errno code
jsr ___seterrno ; Save in errno (returns with .A = 0)
jsr ___osmaperrno ; Map OS error into errno code
jsr ___seterrno ; Save in errno (returns with .A = 0)
.if (.cpu .bitand CPU_ISET_65SC02)
dec a
.else

View File

@@ -17,7 +17,7 @@
.proc _chdir
jsr __syschdir ; Call the machine specific function
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
.endproc

View File

@@ -36,7 +36,7 @@
; Failed to allocate a file stream
lda #EMFILE
jsr ___seterrno ; Set __errno, will return 0 in A
jsr ___seterrno ; Set __errno, will return 0 in A
tax
rts ; Return zero

View File

@@ -39,7 +39,7 @@
; File not open
@L1: lda #EBADF
jsr ___seterrno ; Returns with A = 0
jsr ___seterrno ; Returns with A = 0
tax ; A = X = 0
jmp incsp6

View File

@@ -15,6 +15,6 @@
.proc _mkdir
jsr __sysmkdir ; Call the machine specific function
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
.endproc

View File

@@ -15,7 +15,7 @@
.proc _remove
jsr __sysremove ; Call the machine specific function
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
.endproc

View File

@@ -15,6 +15,6 @@
.proc _rmdir
jsr __sysrmdir ; Call the machine specific function
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
.endproc

View File

@@ -61,7 +61,7 @@ ___sig_ign:
invalidsig:
lda #<EINVAL
jsr ___seterrno ; Returns 0 in A
jsr ___seterrno ; Returns 0 in A
tax ; A/X = 0
___sig_dfl:
rts

View File

@@ -14,11 +14,11 @@
.data
sigtable:
.word ___sig_dfl ; SIGABRT
.word ___sig_dfl ; SIGFPE
.word ___sig_dfl ; SIGILL
.word ___sig_dfl ; SIGINT
.word ___sig_dfl ; SIGSEGV
.word ___sig_dfl ; SIGTERM
.word ___sig_dfl ; SIGABRT
.word ___sig_dfl ; SIGFPE
.word ___sig_dfl ; SIGILL
.word ___sig_dfl ; SIGINT
.word ___sig_dfl ; SIGSEGV
.word ___sig_dfl ; SIGTERM

View File

@@ -15,7 +15,7 @@
.proc _uname
jsr __sysuname ; Call the machine specific function
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
jmp ___mappederrno ; Store into __oserror, set errno, return 0/-1
.endproc

View File

@@ -140,7 +140,7 @@ L0: ldy #EINVAL
pla ; Drop ap
pla
tya
jsr ___directerrno ; Return -1
jsr ___directerrno ; Return -1
jmp incsp6 ; Drop parameters