Question: Decipher each line of the code below and write up what it means and submit. ;ELECTRONIC PING - PONG DATA MOVE ;This program moves push

Decipher each line of the code below and write up what it means and submit.
;ELECTRONIC PING-PONG DATA MOVE
;This program moves push button switch values from Port A to the ;leds on Port B
TJW 21.2.05
; ****************************************************************************************************************************
;Configuration Word: WDT off, power-up timer on, code protect off, RC oscillator
;
list ,p=16F84A
;specify SFRs
status equ 03
porta equ 05
trisa equ 05
portb equ 06
trisb equ 06
;
\table[[,org,00,],[;Initialise],[start,bsf,status, 5,;select memory bank 1],[movlw,B'00011,],[movwf,trisa,;port A according to above pattern],[movlw,00,],[movwf,trisb,;all port B bits output],[bcf,status, 5,;select bank 0],[;,,,],[;The "main" program starts here],[,clrf,porta,;clear all bits in ports A],[loop,movf,porta,0,;move port A to W register],[movwf,portb,;move W register to port B],[goto,loop,],[end,,]]
Decipher each line of the code below and write up

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!