You are answering the general question of what the entire program should do, not the specific question I am asking.
Is this your very first attempt at programming in assembly language?
Tom Maier wrote:Aside from what Ric is pointing out, the "unpackdata" routine is also a perpetual loop.
...
PM data " Program Mode \r\0";1 $
PM data " Program Mode ",0x0D,0x00 ;1 $
Yes it is.Is this your very first attempt at programming in assembly language?
Newpointer is meant to select the subroutine to goto depending on what character is entered. If the letter "D" is entered it is meant to go to Label 'Program Mode' Execute the code until such time as the key to exit the routine is entered. I did look at program flow being a major problem at the moment as well. Thank you for pointing it out.What is meant to happen when you go to Newpointer?
Newpointer is meant to select the subroutine to goto depending on what character is enteredWhat is meant to happen when you go to Newpointer?
That is actually the part of the program I couldn't work out what to do with. After the "BZ Newpointer" I just don't know what to do after it goes to 'Newpointer'. I thought the program should have gone back to the routine that next said 'goto'I am talking about the VERY NEXT INSTRUCTION that is executed after you "GOTO Newpointer".
btfss PIR1,RCIF ;
goto test_receive
movf RCREG,w ;
call request ;
request
;Program Mode
xorlw "A" ;
btfsc STATUS,Z ;
goto set1
set1
movlw upper (PM)
movwf TBLPTRU
movlw high (PM)
movwf TBLPTRH
movlw low (PM)
movwf TBLPTRL
call unpackdata
goto Hyper_Tlink_1
Dimebag wrote: That is actually the part of the program I couldn't work out what to do with. After the "BZ Newpointer" I just don't know what to do after it goes to 'Newpointer'. I thought the program should have gone back to the routine that next said 'goto'
call unpackdata
xorlw "A"
xorlw "B"
btfsc STATUS,Z
goto set2
Users browsing this forum: No registered users and 7 guests