Path: utzoo!utgpu!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!purdue!haven!uflorida!ukma!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!leah!bingvaxu!sunybcs!ugfelong From: ugfelong@cs.Buffalo.EDU (Edward Felong) Newsgroups: comp.sys.apple Subject: Re: Configuring Serial Ports ... Keywords: help Message-ID: <2569@cs.Buffalo.EDU> Date: 10 Nov 88 04:34:14 GMT References: <2340@cs.Buffalo.EDU> <257@greens.UUCP> Reply-To: ugfelong@sunybcs.UUCP (Edward Felong) Organization: SUNY/Buffalo Computer Science Lines: 85 In article <257@greens.UUCP> matthew@sunpix.UUCP ( Sun NCAA) writes: >In article <2340@cs.Buffalo.EDU>, ugfelong@cs.Buffalo.EDU (Edward Felong) writes: >> >> What exactly happens when the serial ports are configured ? >> >The serial port configurations are stored in auxilary memory as follows: [much deleted ...] >to capture these values using machine language do the following: > LDA #$04 > STA $3D #SET SOURCE START HIGH > STA $3F #SET SOURCE END HIGH > LDA #$78 > STA $3C #SET SOURCE START LOW > LDA #$7F > STA $3D #SET SOURCE END LOW ^^^ should be $3E > LDA #$03 > STA $43 #SET DESTINATION HIGH > LDA #$00 > STA $42 #SET DESTINATION LOW > SEC #FLAG A MOVE FROM AUX MEMORY ^^^ CLC moved bytes FROM AUX > JSR $C311 #DO THE ACTUAL MOVE > RTS #MAIN MEMORY $0300-$0307 NOW HAVE VALUES > >and this to set all of them: > LDA #$03 > STA $3D #SET SOURCE START HIGH > STA $3F #SET SOURCE END HIGH > LDA #$00 > STA $3C #SET SOURCE START LOW > LDA #$07 > STA $3D #SET SOURCE END LOW ^^^ should be $3E > LDA #$04 > STA $43 #SET DESTINATION HIGH > LDA #$78 > STA $42 #SET DESTINATION LOW > CLC #FLAG A MOVE TO AUX MEMORY ^^^ SEC moved bytes TO AUX > JSR $C311 #DO THE ACTUAL MOVE > RTS #AUX MEMORY $0478-$047F NOW HAS > #MAIN MEMORY $0300-$0307 VALUES >Matthew Lee Stier (919) 469-8300| >Sun Microsystems --- RTP, NC 27560| "Wisconsin Escapee" >uucp: {sun, rti}!sunpix!matthew | I got the printer to work fine with the changes I indicated. Could someone recommend some reference material for what the "Applesoft BASIC Programmer's Reference Manual" lists as: $C000 $CFFF Hardware I/O addresses Just getting the "ProDos Techincal Reference Manual" from the dealer I bought my //c from was like pulling teeth, and I haven't seen any ads for books in any magazines. Please e-mail since this appears to be of NO interest to anyone else in this newsgroup. (wouldn't want to get in the way of those GS articles :) Ed Felong 'ugfelong@cs.buffalo.EDU' or maybe 'v095gzmx@sunybcs.BITNET'