From: cuz Date: Thu, 5 May 2005 10:25:27 +0000 (+0000) Subject: CLOSE is actually the same as INSTALL/UNINSTALL X-Git-Tag: V2.12.0~339 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a170b50687388a1157b8015e862445fea48c4a36;p=cc65 CLOSE is actually the same as INSTALL/UNINSTALL git-svn-id: svn://svn.cc65.org/cc65/trunk@3502 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm510/cbm510-stdser.s b/libsrc/cbm510/cbm510-stdser.s index 072079b85..8de683b60 100644 --- a/libsrc/cbm510/cbm510-stdser.s +++ b/libsrc/cbm510/cbm510-stdser.s @@ -125,10 +125,15 @@ ParityTable: ; ; UNINSTALL routine. Is called before the driver is removed from memory. ; Must return an SER_ERR_xx code in a/x. - +; and: +; +; CLOSE: Close the port, disable interrupts and flush the buffer. Called +; without parameters. Must return an error code in a/x. +; INSTALL: UNINSTALL: +CLOSE: ; Deactivate DTR and disable 6551 interrupts @@ -216,28 +221,6 @@ InvBaud: ldx #>SER_ERR_BAUD_UNAVAIL rts -;---------------------------------------------------------------------------- -; CLOSE: Close the port, disable interrupts and flush the buffer. Called -; without parameters. Must return an error code in a/x. -; - -CLOSE: - -; Stop interrupts, drop DTR - - lda #%00001010 - jsr write_cmd - -; Initalize buffers. - - jsr InitBuffers - -; Return OK - - lda #SER_ERR_BAUD_UNAVAIL rts -;---------------------------------------------------------------------------- -; CLOSE: Close the port, disable interrupts and flush the buffer. Called -; without parameters. Must return an error code in a/x. -; - -CLOSE: - -; Stop interrupts, drop DTR - - lda #%00001010 - jsr write_cmd - -; Initalize buffers. - - jsr InitBuffers - -; Return OK - - lda #SER_ERR_BAUD_UNAVAIL rts -;---------------------------------------------------------------------------- -; CLOSE: Close the port, disable interrupts and flush the buffer. Called -; without parameters. Must return an error code in a/x. -; - -CLOSE: - -; Stop interrupts, drop DTR - - lda #%00001010 - sta ACIA_CMD - -; Initalize buffers. - - jsr InitBuffers - -; Return OK - - lda #