diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-27 09:16:27 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-27 09:16:27 +0000 |
commit | 6d0b638d691270d7c65899ed860d0330938e7a07 (patch) | |
tree | 2ffed0fb53ca82f760376847d95075a6285acf31 /electronics/asm/\ | |
parent | b8c4af0771371e0c91a57343892e991254c4bf0b (diff) |
did some writeup changes and finished electronics stuff
Diffstat (limited to 'electronics/asm/\')
-rw-r--r-- | electronics/asm/\ | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/electronics/asm/\ b/electronics/asm/\ deleted file mode 100644 index c86ca8e..0000000 --- a/electronics/asm/\ +++ /dev/null @@ -1,45 +0,0 @@ -start: -init: - clrf PORTA ; make sure port A output latches are low - clrf PORTB ; make sure port B output latches are low - bsf STATUS,RP0 ; select memory bank 1 - movlw b'00000000' ; set port A data direction to inputs - movwf TRISA - movlw b'00001111' ; set port B data direction to outputs - movwf TRISB - bcf STATUS,RP0 ; select memory bank 0 - - ;stackptr EQU B10 - tmpdata EQU B9 - - goto main - -main: - ;movlw 0 - ;movwf stackptr - - movlw b'00000001' - movwf PORTA - - movlw b'10100000' ; move 1111 to the output - movwf PORTB - - movlw b'00000000' - movwf PORTA - - movlw b'11111111' - movwf TRISB - - movf PORTB, W - movwf tmpdata - - movlw b'00001111' - movwf TRISB - - swapf tmpdata, W - movwf PORTB - -noend: - goto noend - - END ; ends the program |