Shop OBEX P1 Docs P2 Docs Learn Events
Live HUB viewer (seral version) — Parallax Forums

Live HUB viewer (seral version)

Hi All

Here's a serial version of my live hub viewer.
The top 8 lines show 128 bytes of hub at the current nominated page boundary.
The lower 16 lines represent the entire 512k of hub.
Each character represents 512 bytes of hub.

A "#" character represents a change in hub contents and "." is no change.
A "@" character represents a cursor showing the current page address.

Some simple key commands control cursor movement (l,r,u,n = left, right, up, down)
and Keys (+,- = page +$80,page -$80)
x = clear screen, z = freeze display, s = show page)

You can also type a valid hex address to set the page address. i.e. 3c000<enter>
The address will appear at te bottom of the live display.

Code includes a simple demo writing some junk to hub to show some dummy activity.
Output has two modes, PST abd VT100 which is set by the VT100 constant.

I have found this very useful for debugging code, hope others find it useful too.


3c000: af 4c 6d 64 02 2f 51 8f e0 8c 33 91 9b 3c fb 62 .Lmd./Q...3..<.b
3c010: 35 06 13 a9 7a 92 2e aa 87 a0 5c d9 ef 48 62 b6 5...z.....\..Hb.
3c020: 6a 06 7a 83 24 ef 5c 31 4d 9e 62 49 f0 5b .. a6 j.z.$.\1M.bI.[..
3c030: 93 39 .. 3d ee 12 fc 34 f3 f8 5c 12 cb 87 74 a2 .9.=...4..\...t.
3c040: 9e f1 29 c1 fc 92 b2 04 35 bc 7e b0 c7 3d d3 60 ..).....5.~..=.`
3c050: 4a 59 9a d9 28 bc b7 13 8d 18 f0 91 ba 9e 17 85 JY..(...........
3c060: c2 87 22 82 65 2a d6 8d ef ae da 25 da f0 08 4b ..".e*.....%...K
3c070: 56 d2 46 c9 1a cc ed eb 9c 34 2a d0 5c 8c 22 67 V.F......4*.\."g

00000: #...............................................................
08000: ................................................................
10000: ................................................................
18000: ................................................................
20000: ................................................................
28000: ....................################################.###########
30000: ################################################################
38000: ################################ ###############################
40000: ###################################################.............
48000: ................................................................
50000: ................................................................
58000: ................................................................
60000: ................................................................
68000: ................................................................
70000: ................................................................
78000: ................................................................

00000000

Comments

  • Cluso99Cluso99 Posts: 18,069
    Thanks Brian,
    I'll take a look :)
  • Cluso99Cluso99 Posts: 18,069
    edited 2020-07-26 03:13
    Brian,

    Nice work :)
    Do you have a version that displays on VGA???

    BTW May I suggest when outputting the line dump that the ASCII be enclosed in ' (single quotes).
    Why?
    To be consistent with Chip's original pnut output that the ROM Monitor and TAQOZ follow. The ROM (and hence my serial drivers) can all re-input this code/dump (if saved), as a download. The ' (quote) is necessary to delimit the hex being re-loaded into memory from the ascii characters. Spaces don't matter and are stripped. The colon is interpreted to follow the address (as you have done).
    01060: 0D 0A 50 32  20 43 6C 75  73 6F 53 65  72 69 61 6C   '..P2 ClusoSerial'
    
Sign In or Register to comment.