Mercurial > public > hwos_code
comparison src/hwos.asm @ 648:aeca5717d9eb
3.17 / 10.72 release
author | heinrichs weikamp |
---|---|
date | Fri, 04 Mar 2022 08:29:36 +0100 |
parents | 357341239438 |
children | ef2ed7e3a895 |
comparison
equal
deleted
inserted
replaced
647:357341239438 | 648:aeca5717d9eb |
---|---|
461 ; Power-up the Switches | 461 ; Power-up the Switches |
462 ; | 462 ; |
463 global power_up_switches | 463 global power_up_switches |
464 power_up_switches: | 464 power_up_switches: |
465 bsf power_sw1 ; switch on power supply for switch 1 | 465 bsf power_sw1 ; switch on power supply for switch 1 |
466 btfss power_sw1 ; power established? | 466 |
467 bra $-4 ; NO - wait | 467 ; power_sw1 not available in less pin CPU, do not use |
468 ; btfss power_sw1 ; power established? | |
469 ; bra $-4 ; NO - wait | |
468 | 470 |
469 bsf power_sw2 ; switch on power supply for switch 2 | 471 bsf power_sw2 ; switch on power supply for switch 2 |
470 btfss power_sw2 ; power established? | 472 btfss power_sw2 ; power established? |
471 bra $-4 ; NO - wait | 473 bra $-4 ; NO - wait |
472 | 474 |
616 movwf TBLPTRL ; ... | 618 movwf TBLPTRL ; ... |
617 movlw 0xFF ; ... | 619 movlw 0xFF ; ... |
618 movwf TBLPTRH ; ... | 620 movwf TBLPTRH ; ... |
619 movlw 0x3F ; ... | 621 movlw 0x3F ; ... |
620 movwf TBLPTRU ; ... | 622 movwf TBLPTRU ; ... |
621 TBLRD*+ ; read DEVID1 byte | 623 TBLRD*+ ; read DEVID1 byte |
624 btfss TABLAT,6 | |
625 bsf less_io_cpu ; Less I/O CPU found | |
622 movlw b'00011111' ; load mask for silicon version | 626 movlw b'00011111' ; load mask for silicon version |
623 andwf TABLAT,W ; apply mask and store result in WREG | 627 andwf TABLAT,W ; apply mask and store result in WREG |
624 return ; done | 628 return ; done |
625 | 629 |
626 ;----------------------------------------------------------------------------- | 630 ;----------------------------------------------------------------------------- |