# HG changeset patch # User boisy # Date 1083646245 0 # Node ID e855164fa2beec7810c24168ccde62182714ee13 # Parent 028f29c8595c2de0b4918e8cfa27f2b30c80817d Still not fixed, but close. diff -r 028f29c8595c -r e855164fa2be level1/modules/sc6551.asm --- a/level1/modules/sc6551.asm Tue May 04 04:03:33 2004 +0000 +++ b/level1/modules/sc6551.asm Tue May 04 04:50:45 2004 +0000 @@ -11,6 +11,13 @@ * * 9r4 2003/01/01 Boisy G. Pitre * Back-ported to OS-9 Level Two. +* +* 10r1 2003/??/?? Robert Gault +* Added 6809 code where it was lacking. +* +* 10r2 2004/05/03 Boisy G. Pitre +* Fixed numerous issues with 6809 and Level 1 versions. +* Tested 6809 Level 1 and Level 2 nam sc6551 ttl 6551 Driver @@ -174,7 +181,7 @@ RxBuff rmb RxBufDSz default Rx buffer MemSize equ . -rev set 1 +rev set 2 edition set 10 mod ModSize,ModName,Drivr+Objct,ReEnt+rev,ModEntry,MemSize @@ -203,21 +210,22 @@ * NOTE: SCFMan has already cleared all device memory except for V.PAGE and * V.PORT. Zero-default variables are: CDSigPID, CDSigSig, Wrk.XTyp. Init clrb default to no error... - pshs cc,b,dp save IRQ/Carry status, dummy B, system DP +* pshs cc,b,dp save IRQ/Carry status, dummy B, system DP + pshs cc,dp save IRQ/Carry status, system DP IFNE H6309 tfr u,w tfr e,dp tfr y,w save descriptor pointer ELSE - clrb - tfr b,dp + tfr u,d + tfr a,dp + pshs y ENDC ldd MPI.Slct set MPI slot select register ENDC -NoSelect puls cc,b,dp,pc recover IRQ/Carry status, dummy B, system DP, return +NoSelect puls cc,dp,pc recover IRQ/Carry status, system DP, return Term clrb default to no error... pshs cc,dp save IRQ/Carry status, dummy B, system DP @@ -328,9 +335,7 @@ tfr u,w setup our DP tfr e,dp ELSE -* missing lines - stu