Spin PASM Unified Debugger Progress
Nothing better to do on Friday ....
Here's a dump of SPUD running a Spin program then stopping a COG for debug. The COG runs in the background when not in debug.
More to come tomorrow if I have a chance. Wifey wants to go to Pier 39 since it's so hot ....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propeller Tools
Here's a dump of SPUD running a Spin program then stopping a COG for debug. The COG runs in the background when not in debug.
C:>spud -c COM8 spin/SpudDemo.spin
Starting up with COM port 'COM8'
Top Spin File Path: 'spin/'
Top List File: 'spin/SpudDemo.list'
Brads Spin Tool Compiler v0.15.3 - Copyright 2008,2009 All rights reserved
Compiled for i386 Win32 at 08:17:48 on 2009/07/20
Loading Object SpudDemo
Loading Object SpudVMM
Loading Object SpudDebugger
Loading Object SpudCOG
Loading Object SpudSerial
Loading Object BMAdebugger
Loading Object PASMstub
Loading Object Tv_Text
Loading Object tv
Loading Object Blinky
Program size is 13848 longs
Compiled 2432 Lines of Code in 0.843 Seconds
Downloading 13852 bytes of 'spin/SpudDemo.binary'
Propeller Version 1 on COM8
Writing 13852 bytes to Propeller RAM.
Verifying ... Upload OK!
Waiting for connection ... ready!
spud 0> l
spin/SpudDemo.spin:25
15 t : "Tv_Text"
16 b : "Blinky"
17
18 con
19 tvpin = 20
20
21 pub main | n, bpasm, bparm
22 {{
23 main entry point
24 }}
-> 25 s.start(31,30,0,115200)
26 v.start
27 t.start(tvpin)
28
29 bpasm := b.init(0)
30 bparm := b.parm
31
32 ' start blinky with debugger
33 n := v.startPASM(bpasm, bparm)
34
spud 1> g
spud 2> l
spin/SpudDemo.spin:40
30 bparm := b.parm
31
32 ' start blinky with debugger
33 n := v.startPASM(bpasm, bparm)
34
35 ' start blinky without debugger
36 'b.start(0)
37
38 t.str(string("Hello World!"))
39
-> 40 n++
41
42 repeat
43
44 var
45 long stk[noparse][[/noparse]10]
46
47 pub nada
48 repeat
49
spud 3> k
T
spin: pc(005E) sf(3C30) sp(3C40) vp(361C)#97
Active COG Threads 1: 0 #5B
b0t
COG 0
Spin PASM Unified Debugger.
L7 3
7 3
PC 007 . : or 68FFEC03 D:1F6 00000003 S#003
PC 008 . : xor 6CFFE801 D:1F4 00000001 S#001
PC 009 . : jmp 5C7C0008 N D:000 083C01F3 S#008
s
PC 008 . : xor 6CFFE801 D:1F4 00000001 S#001 D=1F4 00000000
s
PC 009 . : jmp 5C7C0008 N D:000 083C01F3 S#008 D=000 083C01F3
s
PC 008 . : xor 6CFFE801 D:1F4 00000000 S#001 D=1F4 00000001
s
PC 009 . : jmp 5C7C0008 N D:000 083C01F3 S#008 D=000 083C01F3
s
PC 008 . : xor 6CFFE801 D:1F4 00000001 S#001 D=1F4 00000000
q
spud 4>
More to come tomorrow if I have a chance. Wifey wants to go to Pier 39 since it's so hot ....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propeller Tools
