Mercurial > hg > Members > kono > nitros9-code
diff level1/modules/dw3.asm @ 2638:4655eabf00c0
dw3.asm is now common... dwinit.asm now added to for port specific initialization
author | Boisy Pitre <boisy.pitre@nuance.com> |
---|---|
date | Mon, 27 Feb 2012 22:59:24 -0600 |
parents | b8c7b7fbf3c9 |
children | 8d24c482646e |
line wrap: on
line diff
--- a/level1/modules/dw3.asm Mon Feb 27 22:10:09 2012 -0600 +++ b/level1/modules/dw3.asm Mon Feb 27 22:59:24 2012 -0600 @@ -66,27 +66,15 @@ clrb clear Carry rts -* Read -* -* ON ENTRY: -* X = ADDRESS OF THE RECEIVE BUFFER -* A = TIMEOUT VALUE (182 = APPROX ONE SECOND @ 0.89 MHz) -* -* ON EXIT: -* Y = DATA CHECKSUM -* D = ACTUAL NUMBER OF BYTES RECEIVED -* X AND U ARE PRESERVED -* CC.CARRY IS SET IF A FRAMING ERROR WAS DETECTED -* Read use dwread.asm -* Write -* -* Entry: Write use dwwrite.asm + + use dwinit.asm + * Init * * Entry: @@ -101,14 +89,7 @@ Init clrb clear Carry pshs y,x,cc then push CC on stack - orcc #IntMasks - ldx #PIA1Base $FF20 - clr 1,x clear CD - lda #%11111110 - sta ,x - lda #%00110100 - sta 1,x - lda ,x + bsr DWInit ; allocate DW statics page pshs u