Shop OBEX P1 Docs P2 Docs Learn Events
Question about the object info window — Parallax Forums

Question about the object info window

Zap-oZap-o Posts: 452
edited 2010-06-19 03:34 in Propeller 1
I cant figure out what the numbers mean in the picture A is that the address on in the 24LC256 or propeller or other?

Also what is the number in the picture B mean? Are they 16 bits long? Is that an instruction? I assume they are bytes and the entire line is a long either an instruction or a variable?

Thanks in advance?

attachment.php?attachmentid=71281
930 x 489 - 116K

Comments

  • ratronicratronic Posts: 1,451
    edited 2010-06-18 18:22
    Zap-o, In the propeller tool at the top click on these in this order.



    help - propeller help - using the propeller tool - tour the work space - object info

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ···································Fix it, if ain't broke!


    D Rat

    Dave Ratcliff N6YEE
  • MagIO2MagIO2 Posts: 2,243
    edited 2010-06-18 20:19
    A is the address in EEPROM as well as the address in HUB RAM of the propeller. The 32kB image of the EEPROM is completely loaded into the Propeller during startup.

    B depends on what part of memory you look at. It can be byte data like a string or it can be a word or a long. The red part is data and code. SPIN code is bytecode, PASM code are longs.
    The yellow part is the area where variables are stored.
    The blue part is used as stackspace for the first COG, which is running the SPIN interpreter.

    To find out what you're looking at you need to know how the SPIN compiler handles the different sections and the objects.

    Post Edited (MagIO2) : 6/18/2010 8:24:51 PM GMT
  • heaterheater Posts: 3,370
    edited 2010-06-18 20:39
    A is the address in HUB, same as the address in EEPROM.
    B is the memory content in hexadecimal 16 byte per row.

    If you want to know what you are looking at, Spin code, PASM code, DAT data etc you should download BST.

    BST is a work-alike Propeller tool which runs on Macs and Linux and has some extra features.

    One of those extra features is a listing window which shows exactly what bytes are compiled from what code. Like so:
    Object DAT Blocks
    |===========================================================================|
    009C(0000)             |                         org     0
    009C(0000) 8D 01 7C 5C | enter                   jmp     #execute
    00A0(0001) 00 66 7F 86 | zpu_im                  cmp     decode_mask, #0 wz
    00A4(0002) 01 66 FF A0 |                         mov     decode_mask, #1
    00A8(0003) 08 00 68 5C |               if_z      jmp     #:first
    00AC(0004) 07 62 FF 2C |                         shl     tos, #7
    00B0(0005) 7F 6C FF 60 |                         and     address, #$7F
    00B4(0006) B6 63 BF 68 |                         or      tos, address
    00B8(0007) 8C 01 7C 5C |                         jmp     #done_and_inc_pc
    
    



    Get BST from here: www.fnarfbargle.com/bst.html

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    For me, the past is not over yet.
  • Zap-oZap-o Posts: 452
    edited 2010-06-19 03:34
    Thanks people. This is helping me horrendously. [noparse]:)[/noparse]
Sign In or Register to comment.