From a170b50687388a1157b8015e862445fea48c4a36 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 5 May 2005 10:25:27 +0000 Subject: [PATCH] CLOSE is actually the same as INSTALL/UNINSTALL git-svn-id: svn://svn.cc65.org/cc65/trunk@3502 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/cbm510/cbm510-stdser.s | 29 ++++++----------------------- libsrc/cbm610/cbm610-stdser.s | 30 +++++++----------------------- libsrc/plus4/plus4-stdser.s | 30 +++++++----------------------- 3 files changed, 20 insertions(+), 69 deletions(-) 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 #