Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #381276
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: OT: Reformatted update on table call problem |
| References | <egISx.89569$s%4.86979@fx20.iad> <mvfq7j$aak$1@dont-email.me> |
| Message-ID | <BLZSx.10$VZ.6@fx05.iad> (permalink) |
| Date | 2015-10-12 19:11 -0700 |
piglet wrote:
> On 12/10/2015 07:17, Robert Baer wrote:
>> ORG 0x0100
>> tab1:
>> ;; RETLW 0x01 ; [0] t=0.7500 r=0.0000
>> ADDWF PCL,F
>> RETLW 0x15 ; [1] t=0.7539 r=0.0240
>> RETLW 0x14 ; [2] t=0.7578 r=0.0964
>> RETLW 0x13 ; [3] t=0.7617 r=0.2173
>> RETLW 0x12 ; [4] t=0.7656 r=0.3865
>>
>> Note the CALL tab1 does not work.
>> Why?
>
> Which part of the call does not work for you, the return of a value in W
> or the return of program flow?
* If the CALL is left in, i cannot determine _what_ the actual program
flow *is* (see comment below).
>
> Why not try something like this:
> tab1:
> movlw 0x55 ; or other plainly visible pattern
> return
* That works.
>
> and then report back to the group.
>
> Alternatively try simulating inside MPLAB without having to reflash any
> hardware at all.
* Emulators, simulators: can the PIC16F648A "work" with one of those,
or must one use their "debug header" monster(about twice as long, 30%
wider and 3-4 times taller) with a *different* interface to the PICkit3.
* I now (as of yesterday) have a new PCB that can physically accept that
monster.
* That means i will have to learn how to use the simulator from scratch...
>
> piglet
Note the commented lines in this snippet:
repeat:
INCF ptrlo ; next loc
MOVF ptrlo,W
CALL tab1 ;;*REMoving this, one sees 0x00 0xFF (counting)
; otherwise,one sees only repeating 0x00 0xFF
MOVWF PORTB ; Port B from W
CALL DELAY ; "freeze" LEDs
GOTO repeat
One sees it counting IF one REMoves the CALL (first detail comment).
HOWEVER, all is lost if the CALL is left in; program acts as if a
reset happens at the CALL (the repeating 0x00 0xFF).
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-11 23:17 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-12 09:17 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-12 19:11 -0700
Re: OT: Reformatted update on table call problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-13 08:17 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-13 22:26 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-14 07:50 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-14 16:35 -0700
Re: OT: Reformatted update on table call problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-15 12:01 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-15 22:41 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-16 07:09 +0100
Re: OT: Reformatted update on table call problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-16 08:50 +0100
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-16 09:31 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-17 21:34 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-18 09:42 +0100
Re: OT: Reformatted update on table call problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-19 09:12 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-19 23:04 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-17 21:08 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-18 09:45 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-19 23:08 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-17 21:19 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-18 09:50 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-19 23:14 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-17 21:03 -0700
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-18 10:14 +0100
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-19 23:31 -0700
Re: Reformatted update on table call problem "P E Schoen" <paul@pstech-inc.com> - 2015-10-20 20:30 -0400
Re: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-20 22:42 -0700
Re: Reformatted update on table call problem "P E Schoen" <paul@pstech-inc.com> - 2015-10-21 14:06 -0400
Re: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-23 21:01 -0700
Re: Reformatted update on table call problem "P E Schoen" <paul@pstech-inc.com> - 2015-10-24 01:08 -0400
Re: Reformatted update on table call problem krw <krw@nowhere.com> - 2015-10-24 09:05 -0400
Re: OT: Reformatted update on table call problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-10-12 09:46 +0100
Re: OT: Reformatted update on table call problem piglet <erichpwagner@hotmail.com> - 2015-10-12 10:39 +0100
Re: OT: Reformatted update on table call problem Martin Riddle <martin_ridd@verizon.net> - 2015-10-12 08:24 -0400
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-12 19:54 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-12 19:55 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-12 19:49 -0700
Re: OT: Reformatted update on table call problem Robert Baer <robertbaer@localnet.com> - 2015-10-12 19:44 -0700
Re: OT: Reformatted update on table call problem (OOPS!) Robert Baer <robertbaer@localnet.com> - 2015-10-12 23:52 -0700
csiph-web