;------------------------------------------------------------------ ; ; FILE : SHOWPILOT.S - DoSetUp - ; ----------- ; RELOGEABLE ;------------------------------------------------------------------ List Off Gen Off Symbol Off Keep DoSetUp 65816 On MCopy Showpilot.mac longa on longi on ;............................................................... ; ; DoSetupR : Init Serial ; ;............................................................... DoSetUpR START Using GlobalData brl DoSetUp END ;--------------------------------------------------------------- ; ; DoSetUp : init des voies series pour la sequence ; ;--------------------------------------------------------------- DoSetUp START Using GlobalData Phb Phk Plb ;-- PushLong #0 _GetPort ;-- PushLong #0 ; output PushLong #VRect Pushword #True ; visible PushLong #0 ; refcon _NewModalDialog pla sta Ptr_PilotW pla sta Ptr_PilotW+2 PushLong Ptr_PilotW _SetPort PushLong Ptr_PilotW |ok PushWord #1 PushLong #Rectok PushWord #ButtonItem PushLong #CFC_Vatit PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |annule PushWord #2 PushLong #Rectan PushWord #ButtonItem PushLong #CFC_Catit PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |titre PushWord #0 PushLong #rectti PushWord #StatText+ItemDisable PushLong #CDS_tit PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |Imprimante PushWord #3 PushLong #rectim PushWord #RadioItem PushLong #CDS_I PushWord #1 |on PushWord #1 |family 1 PushLong #0 _NewDItem PushLong Ptr_PilotW |Modem PushWord #4 PushLong #rectmo PushWord #RadioItem PushLong #CDS_M PushWord #0 |off PushWord #1 |family 1 PushLong #0 _NewDItem ;=========== PushLong Ptr_PilotW |bauds PushWord #0 PushLong #rectba PushWord #StatText+ItemDisable PushLong #CDS_B PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |Parite PushWord #0 PushLong #rectpa PushWord #StatText+ItemDisable PushLong #CDS_P PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |donnees PushWord #0 PushLong #rectdo PushWord #StatText+ItemDisable PushLong #CDS_D PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |stop PushWord #0 PushLong #rectst PushWord #StatText+ItemDisable PushLong #CDS_S PushWord #0 PushWord #0 PushLong #0 _NewDItem PushLong Ptr_PilotW |300 PushWord #5 PushLong #rect300 PushWord #RadioItem PushLong #CDS_300 PushWord #1 |on PushWord #2 |family 2 PushLong #0 _NewDItem PushLong Ptr_PilotW |1200 PushWord #6 PushLong #rect1200 PushWord #RadioItem PushLong #CDS_1200 PushWord #0 |off PushWord #2 |family 2 PushLong #0 _NewDItem PushLong Ptr_PilotW |2400 PushWord #7 PushLong #rect2400 PushWord #RadioItem PushLong #CDS_2400 PushWord #0 |off PushWord #2 |family 2 PushLong #0 _NewDItem PushLong Ptr_PilotW |4800 PushWord #8 PushLong #rect4800 PushWord #RadioItem PushLong #CDS_4800 PushWord #0 |off PushWord #2 |family 2 PushLong #0 _NewDItem PushLong Ptr_PilotW |9600 PushWord #9 PushLong #rect9600 PushWord #RadioItem PushLong #CDS_9600 PushWord #0 |off PushWord #2 |family 2 PushLong #0 _NewDItem PushLong Ptr_PilotW |19200 PushWord #10 PushLong #rect19200 PushWord #RadioItem PushLong #CDS_19200 PushWord #0 |off PushWord #2 |family 2 PushLong #0 _NewDItem ;========== PushLong Ptr_PilotW |8 bits PushWord #11 PushLong #rect8b PushWord #RadioItem PushLong #CDS_8 PushWord #1 |on PushWord #3 |family 3 PushLong #0 _NewDItem PushLong Ptr_PilotW |7 bits PushWord #12 PushLong #rect7b PushWord #RadioItem PushLong #CDS_7 PushWord #0 |off PushWord #3 |family 3 PushLong #0 _NewDItem ;=========== PushLong Ptr_PilotW |aucune PushWord #13 PushLong #rectaucune PushWord #RadioItem PushLong #CDS_aucune PushWord #1 |on PushWord #4 |family 4 PushLong #0 _NewDItem PushLong Ptr_PilotW |paire PushWord #14 PushLong #rectpaire PushWord #RadioItem PushLong #CDS_paire PushWord #0 |off PushWord #4 |family 4 PushLong #0 _NewDItem PushLong Ptr_PilotW |impaire PushWord #15 PushLong #rectimpaire PushWord #RadioItem PushLong #CDS_impaire PushWord #0 |off PushWord #4 |family 4 PushLong #0 _NewDItem ;=========== PushLong Ptr_PilotW |aucune PushWord #16 PushLong #rects1 PushWord #RadioItem PushLong #CDS_1 PushWord #1 |on PushWord #5 |family 5 PushLong #0 _NewDItem PushLong Ptr_PilotW |aucune PushWord #17 PushLong #rects2 PushWord #RadioItem PushLong #CDS_2 PushWord #0 |off PushWord #5 |family 5 PushLong #0 _NewDItem ;------------------------------------- ;------------------------------------- PushLong Ptr_PilotW |cr PushWord #18 PushLong #rectcr PushWord #RadioItem PushLong #CDS_cr PushWord #0 |off PushWord #6 |family 6 PushLong #0 _NewDItem ;-------------------------------------- ldx #18 loopsauve lda >ParamSerie,x sta portImp,x dex dex bpl loopsauve ;-------------------------------------- again0 jsr SetSerie |init des boutons ;-------------------------------------- again PushWord #0 ; result PushLong #0 _ModalDialog plx stx numID cpx #1 |ok beq valider cpx #2 |cancel beq annuler cpx #18 |CR beq pluscr bra suite ;-- cr pluscr PushWord #0 PushLong Ptr_PilotW PushWord #18 _GetDItemValue pla eor #$0001 Pha PushLong Ptr_PilotW PushWord #18 _SetDItemValue bra lasuite ;-- suite phx |sauve ID PushWord #1 |on PushLong Ptr_PilotW phx |ID _SetDItemValue ;--- plx |recup le numero ID cpx #3 |imprima beq chport cpx #4 |modem bne lasuite chport brl again0 lasuite jsr pos_port |set parametre brl again ;-------------------------------------- valider ANOP ldx #18 looprest lda PortImp,x sta >ParamSerie,x dex dex bpl looprest ;-------------------------------------- annuler ANOP ;-------------------------------------- fin PushLong Ptr_PilotW _CloseDialog _SetPort ;-- lda #DoSetUp sta