changeset 2713:37d3ee1458b6 lwtools-port

Fixed stupid mistake in branch table
author Boisy Pitre <boisy.pitre@nuance.com>
date Wed, 25 Jul 2012 11:25:34 -0500
parents 918dc38f231b
children 8399491c0821
files level1/modules/rbdw3.asm
diffstat 1 files changed, 1 insertions(+), 50 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/rbdw3.asm	Tue Jul 24 23:39:21 2012 -0500
+++ b/level1/modules/rbdw3.asm	Wed Jul 25 11:25:34 2012 -0500
@@ -61,8 +61,7 @@
 
 start    bra   Init
          nop
-         bra   Read
-         nop
+         lbra   Read
          lbra  Write
          lbra  GetStat
          lbra  SetStat
@@ -88,21 +87,11 @@
 * Fix crash in certain cases
          beq   no@
          ldy   #$0001
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         ora   #DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          lda   #OP_TERM
          pshs a
          leax ,s
          orcc  #IntMasks
          jsr   DW$Write,u
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         anda  #^DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          clrb
          puls a
 no@      puls cc,pc
@@ -158,22 +147,12 @@
          stu   >D.DWSubAddr
          ENDC
 * Initialize the low level device
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         ora   #DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          jsr   DW$Init,u
          lda   #OP_INIT
          sta   ,s
          leax  ,s
          ldy   #$0001
          jsr   DW$Write,u
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         anda  #^DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          clrb
 
 InitEx
@@ -233,11 +212,6 @@
          ldb   #E$Unit
          bra   ReadEr2
 Read1    sta   driveno,u
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         ora   #DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          lda   #OP_READEX		load A with READ opcode
          
 Read2
@@ -289,11 +263,6 @@
          ora   #Carry
          sta   9,s
 ReadEx   leas  5,s
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         anda  #^DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          puls  y,u
          puls  cc,pc
 
@@ -313,10 +282,6 @@
          sta   retries,u
          pshs  cc
          pshs  u,y,x,b,a,cc
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         ora   #DWIOSEMA
-         sta   D.ATARIFLAGS
          ENDC
 * Send out op code and 3 byte LSN
          lda   PD.DRV,y
@@ -375,11 +340,6 @@
          ora   #Carry
          sta   9,s
 WritEx   leas  5,s
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         anda  #^DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          puls  y,u
          puls  cc,pc
  
@@ -414,10 +374,6 @@
 *
 GetStat  
          IFNE  atari
-         lda   D.ATARIFLAGS
-         ora   #DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          lda   #OP_GETSTA
          clrb				clear Carry
          pshs  cc			and push CC on stack
@@ -436,11 +392,6 @@
          ENDC
          jsr   6,u
          leas  3,s
-         IFNE  atari
-         lda   D.ATARIFLAGS
-         anda  #^DWIOSEMA
-         sta   D.ATARIFLAGS
-         ENDC
          puls  cc,pc
 		 
          emod