CARVIEW |
Select Language
HTTP/2 200
date: Thu, 16 Oct 2025 00:24:30 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=c389d3647c7bc039685ed24e339a995d540e1538ba9041373a620450d4140e9ca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22uX3ycZk_Sl0Cyujg6ZLRUlAJRHnvp7YI%22%3B%7D; HttpOnly; Path=/
cf-ray: 98f369e76a787679-BLR
list p=16F84A#include <p16F84a.inc>__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list p=16F84A
- #include <p16F84a.inc>
- __CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
- tmp EQU 0x0F
- ORG 0x000 ; processor reset vector
- bcf STATUS,RP1
- bsf STATUS,RP0 ; switch to register bank 1
- movlw 0x1C ; control word for port A
- movwf TRISA ; RA4, RA3, RA2 - input, RA1, RA0 - output
- movlw 0xFF ; control word for port B
- movwf TRISB ; all are inputs for now
- bcf STATUS,RP0 ; switch back to register bank 0
- start
- movf PORTA, w ; load data from port A into w
- andlw 0x1C ; apply mask 00011100 - isolate A B C
- movwf tmp ; save 000ABC00 in tmp
- andlw 0x04 ; apply mask 00000100 - isolate C
- xorlw 0x04 ; negate C in accumulator
- btfsc STATUS,Z ; if !C=1 then
- bsf tmp, 0x02 ; set 000ABC10 in tmp
- movf tmp, w ; load 000ABC10 into accumulator
- andlw 0x10 ; apply mask 00010000 - isolate A
- rrf w ; rotate w to the right, so it lines up with B in tmp
- xorwf tmp, w ; A xor B
- andlw 0x08 ; isolate (A xor B) value
- rrf w ; (A xor B) is now at 0x04
- rrf w ; (A xor B) is now at 0x02, lines up with !C in tmp
- iorwf tmp, w ; (A xor B) || !C
- andlw 0x02 ; isolate result
- movwf PORTA ; output result on port A
- goto start
- end
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 sec ago | 0.15 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 8 sec ago | 0.15 KB
-
✅ Make $2500 in 20 minutes⭐ 0
JavaScript | 8 sec ago | 0.25 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 9 sec ago | 0.15 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 9 sec ago | 0.15 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 11 sec ago | 0.15 KB
-
📌 Swapzone +37% glitch ⭐ A
JavaScript | 16 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 19 sec ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand