1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Merge pull request #863 from Compyx/master

Removed trailing spaces from CBM-related asm files.
This commit is contained in:
greg-king5 2019-03-24 21:36:41 -04:00 committed by GitHub
commit fbf302e6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 28 additions and 56 deletions

View File

@ -20,6 +20,3 @@ L9: rts
.endproc .endproc

View File

@ -5,7 +5,7 @@
; unsigned char __fastcall__ set_chameleon_speed (unsigned char speed); ; unsigned char __fastcall__ set_chameleon_speed (unsigned char speed);
; ;
;/* Set the speed of the Chameleon cartridge, the following inputs ;/* Set the speed of the Chameleon cartridge, the following inputs
; * are accepted: ; * are accepted:
; * SPEED_SLOW : 1 Mhz mode ; * SPEED_SLOW : 1 Mhz mode
; * SPEED_1X : 1 Mhz mode ; * SPEED_1X : 1 Mhz mode
; * SPEED_2X : 2 Mhz mode ; * SPEED_2X : 2 Mhz mode

View File

@ -167,7 +167,7 @@ loop: .repeat 8
; Done ; Done
done: rts done: rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
; COPYFROM: Copy from extended into linear memory. A pointer to a structure ; COPYFROM: Copy from extended into linear memory. A pointer to a structure
@ -178,7 +178,7 @@ done: rts
COPYFROM: COPYFROM:
sta ptr3 sta ptr3
stx ptr3+1 ; Save the passed em_copy pointer stx ptr3+1 ; Save the passed em_copy pointer
ldy #EM_COPY::OFFS ldy #EM_COPY::OFFS
lda (ptr3),y lda (ptr3),y
sta ptr1 sta ptr1

View File

@ -190,7 +190,7 @@ done: rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
; USE: Tell the driver that the window is now associated with a given page. ; USE: Tell the driver that the window is now associated with a given page.
USE: sta curpage USE: sta curpage
stx curpage+1 ; Remember the page stx curpage+1 ; Remember the page
lda #<window lda #<window

View File

@ -12,4 +12,3 @@
_mouse_stddrv: .asciiz "c64-1351.mou" _mouse_stddrv: .asciiz "c64-1351.mou"

View File

@ -11,7 +11,7 @@
.include "c64.inc" .include "c64.inc"
__randomize: __randomize:
ldx VIC_HLINE ; Use VIC rasterline as high byte ldx VIC_HLINE ; Use VIC rasterline as high byte
lda TIME+2 ; Use 60HZ clock as low byte lda TIME+2 ; Use 60HZ clock as low byte
jmp _srand ; Initialize generator jmp _srand ; Initialize generator

View File

@ -35,5 +35,3 @@ utsdata:
; machine ; machine
.asciiz "Commodore 64" .asciiz "Commodore 64"

View File

@ -17,7 +17,7 @@ _cclearxy:
_cclear: _cclear:
cmp #0 ; Is the length zero? cmp #0 ; Is the length zero?
beq L9 ; Jump if done beq L9 ; Jump if done
sta tmp1 sta tmp1
L1: lda #$20 ; Blank - screen code L1: lda #$20 ; Blank - screen code
jsr cputdirect ; Direct output jsr cputdirect ; Direct output
dec tmp1 dec tmp1

View File

@ -7,7 +7,7 @@
.include "dir.inc" .include "dir.inc"
.include "errno.inc" .include "errno.inc"
.include "zeropage.inc" .include "zeropage.inc"
.import pushax .import pushax
.import _read .import _read

View File

@ -5,11 +5,9 @@
; ;
.export _gotox .export _gotox
.import plot .import plot
.importzp CURS_X .importzp CURS_X
_gotox: sta CURS_X ; Set new position _gotox: sta CURS_X ; Set new position
jmp plot ; And activate it jmp plot ; And activate it

View File

@ -194,5 +194,3 @@ nofile: ; ... else use SA=0 (read)
.endproc .endproc

View File

@ -6,7 +6,6 @@
.export screensize .export screensize
.import SCREEN .import SCREEN
screensize = SCREEN screensize = SCREEN

View File

@ -3,10 +3,10 @@
; ;
; OPEN kernal call. ; OPEN kernal call.
; ;
; NOTE: The OPEN system call in the CBM610 kernal is different from the ; NOTE: The OPEN system call in the CBM610 kernal is different from the
; standard. It evaluates the carry flag and does a normal open if carry clear ; standard. It evaluates the carry flag and does a normal open if carry clear
; and some strange things (output sa 15 + name on IEC) if carry set. To be ; and some strange things (output sa 15 + name on IEC) if carry set. To be
; compatible with our CBM file stuff, we have to clear the carry before ; compatible with our CBM file stuff, we have to clear the carry before
; calling the real OPEN. ; calling the real OPEN.
.export OPEN .export OPEN
@ -18,5 +18,3 @@
.endproc .endproc

View File

@ -3,7 +3,7 @@
; ;
; udtim routine for the 610. We will not check for the stop key here, since ; udtim routine for the 610. We will not check for the stop key here, since
; C programs will not use it. ; C programs will not use it.
; ;
.export UDTIM .export UDTIM
.import time: zp .import time: zp

View File

@ -6,7 +6,6 @@
.export screensize .export screensize
.import SCREEN .import SCREEN
screensize = SCREEN screensize = SCREEN

View File

@ -3,10 +3,10 @@
; ;
; OPEN kernal call. ; OPEN kernal call.
; ;
; NOTE: The OPEN system call in the CBM610 kernal is different from the ; NOTE: The OPEN system call in the CBM610 kernal is different from the
; standard. It evaluates the carry flag and does a normal open if carry clear ; standard. It evaluates the carry flag and does a normal open if carry clear
; and some strange things (output sa 15 + name on IEC) if carry set. To be ; and some strange things (output sa 15 + name on IEC) if carry set. To be
; compatible with our CBM file stuff, we have to clear the carry before ; compatible with our CBM file stuff, we have to clear the carry before
; calling the real OPEN. ; calling the real OPEN.
.export OPEN .export OPEN
@ -18,5 +18,3 @@
.endproc .endproc

View File

@ -12,7 +12,7 @@
.import sys_bank, restore_bank .import sys_bank, restore_bank
.import sysp0: zp, ktmp: zp .import sysp0: zp, ktmp: zp
.include "cbm610.inc" .include "cbm610.inc"
.proc SETNAM .proc SETNAM
@ -41,5 +41,3 @@
.endproc .endproc

View File

@ -3,7 +3,7 @@
; ;
; udtim routine for the 610. We will not check for the stop key here, since ; udtim routine for the 610. We will not check for the stop key here, since
; C programs will not use it. ; C programs will not use it.
; ;
.export UDTIM .export UDTIM
.import time: zp .import time: zp

View File

@ -10,7 +10,7 @@
.import _srand .import _srand
.importzp time .importzp time
__randomize: __randomize:
ldx time+2 ; Use 50/60HZ clock ldx time+2 ; Use 50/60HZ clock
lda time+1 lda time+1
jmp _srand ; Initialize generator jmp _srand ; Initialize generator

View File

@ -15,5 +15,3 @@
.endproc .endproc

View File

@ -15,5 +15,3 @@
.endproc .endproc

View File

@ -10,7 +10,7 @@
.proc CLOSE .proc CLOSE
ldx PET_DETECT ldx PET_DETECT
cpx #PET_4000 cpx #PET_4000
bne @L1 bne @L1
@ -19,4 +19,3 @@
.endproc .endproc

View File

@ -5,7 +5,7 @@
; ;
.export RDTIM .export RDTIM
.include "pet.inc" .include "pet.inc"
@ -20,4 +20,3 @@
.endproc .endproc

View File

@ -15,7 +15,6 @@
stx DEVNUM ; Device address stx DEVNUM ; Device address
sty SECADR ; Secondary address sty SECADR ; Secondary address
rts rts
.endproc .endproc

View File

@ -10,7 +10,7 @@
.proc SETNAM .proc SETNAM
sta FNLEN sta FNLEN
stx FNADR stx FNADR
sty FNADR+1 sty FNADR+1
@ -18,4 +18,3 @@
.endproc .endproc

View File

@ -11,7 +11,7 @@
.include "pet.inc" .include "pet.inc"
__randomize: __randomize:
ldx TIME+2 ldx TIME+2
lda TIME+1 ; Use 60HZ clock lda TIME+1 ; Use 60HZ clock
jmp _srand ; Initialize generator jmp _srand ; Initialize generator

View File

@ -55,7 +55,7 @@ uservec: jmp $FFFF ; Patched at runtime
; Break handler, called if a break occurs. ; Break handler, called if a break occurs.
.proc brk_handler .proc brk_handler
@ -91,4 +91,3 @@ uservec: jmp $FFFF ; Patched at runtime
.endproc .endproc

View File

@ -167,7 +167,7 @@ loop: .repeat 8
; Done ; Done
done: rts done: rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
; COPYFROM: Copy from extended into linear memory. A pointer to a structure ; COPYFROM: Copy from extended into linear memory. A pointer to a structure
@ -178,7 +178,7 @@ done: rts
COPYFROM: COPYFROM:
sta ptr3 sta ptr3
stx ptr3+1 ; Save the passed em_copy pointer stx ptr3+1 ; Save the passed em_copy pointer
ldy #EM_COPY::OFFS ldy #EM_COPY::OFFS
lda (ptr3),y lda (ptr3),y
sta ptr1 sta ptr1

View File

@ -10,7 +10,7 @@
.proc PLOT .proc PLOT
bcs @L1 bcs @L1
jsr $FFF0 ; Set cursor position jsr $FFF0 ; Set cursor position
jmp $EAB2 ; Set pointer to color RAM jmp $EAB2 ; Set pointer to color RAM
@ -18,4 +18,3 @@
.endproc .endproc

View File

@ -102,7 +102,7 @@ argloop:lda BASIC_BUF,x
inx inx
cmp term cmp term
bne argloop bne argloop
; We've found the end of the argument. X points one character behind it, and ; We've found the end of the argument. X points one character behind it, and
; A contains the terminating character. To make the argument a valid C string, ; A contains the terminating character. To make the argument a valid C string,
; replace the terminating character by a zero. ; replace the terminating character by a zero.