From: Olli Savia Date: Mon, 26 Nov 2018 20:01:04 +0000 (+0200) Subject: Added SER_ prefix. Whitespace cleanup X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5901ea80a4556325598241b6fcb540fea896b383;p=cc65 Added SER_ prefix. Whitespace cleanup --- diff --git a/libsrc/apple2/ser/a2.ssc.s b/libsrc/apple2/ser/a2.ssc.s index d5c567165..a32110ef2 100644 --- a/libsrc/apple2/ser/a2.ssc.s +++ b/libsrc/apple2/ser/a2.ssc.s @@ -44,15 +44,15 @@ .addr $0000 ; Jump table - .addr INSTALL - .addr UNINSTALL - .addr OPEN - .addr CLOSE - .addr GET - .addr PUT - .addr STATUS - .addr IOCTL - .addr IRQ + .addr SER_INSTALL + .addr SER_UNINSTALL + .addr SER_OPEN + .addr SER_CLOSE + .addr SER_GET + .addr SER_PUT + .addr SER_STATUS + .addr SER_IOCTL + .addr SER_IRQ ;---------------------------------------------------------------------------- ; I/O definitions @@ -141,23 +141,23 @@ IdTableLen = * - IdValTable .code ;---------------------------------------------------------------------------- -; INSTALL: Is called after the driver is loaded into memory. If possible, +; SER_INSTALL: Is called after the driver is loaded into memory. If possible, ; check if the hardware is present. Must return an SER_ERR_xx code in a/x. ; ; Since we don't have to manage the IRQ vector on the Apple II, this is ; actually the same as: ; -; UNINSTALL: Is called before the driver is removed from memory. +; SER_UNINSTALL: Is called before the driver is removed from memory. ; No return code required (the driver is removed from memory on return). ; ; and: ; -; CLOSE: Close the port and disable interrupts. Called without parameters. +; SER_CLOSE: Close the port and disable interrupts. Called without parameters. ; Must return an SER_ERR_xx code in a/x. -INSTALL: -UNINSTALL: -CLOSE: +SER_INSTALL: +SER_UNINSTALL: +SER_CLOSE: ldx Index ; Check for open port beq :+ @@ -172,16 +172,16 @@ CLOSE: rts ;---------------------------------------------------------------------------- -; OPEN: A pointer to a ser_params structure is passed in ptr1. +; SER_OPEN: A pointer to a ser_params structure is passed in ptr1. ; Must return an SER_ERR_xx code in a/x. -OPEN: +SER_OPEN: ldx #<$C000 stx ptr2 lda #>$C000 ora Slot sta ptr2+1 - + ; Check Pascal 1.1 Firmware Protocol ID bytes : ldy IdOfsTable,x lda IdValTable,x @@ -190,7 +190,7 @@ OPEN: inx cpx #IdTableLen bcc :- - + ; Convert slot to I/O register index lda Slot asl @@ -273,11 +273,11 @@ InvBaud:lda #