As it is SAD does a good job too note a block of code as a structure, then commands are added to the DIR manually to give the structure context.tvrfan wrote: ↑Tue May 01, 2018 2:49 pm My original idea was to show a whole ENTRY (or CELL) as one printed row, which matches my IT programming view. This matches up with a TABLE which is a 2D structure with rows and columns.
For a command , you specify one entry of a struct and then SAD then fills in the following entries automatically until END address. Seems logical to me, but then I admit my strong IT bias. Not sure how one on each line would identify it as a structure, but I'm open to ideas.
From your A9L DIR and LST
Code: Select all
word 862a 862d
strct 862e 864f : Y N :Y
word 8650 865d
strct 865e 868d : Y N D 100:Y
word 868e 869b :
strct 869c 86c9 : Y N D 200:Y
word 86ca 86d7
strct 86d8 86e5 : Y N D 300:Y
word 86e6 86e7
Code: Select all
863e: b0,1e struct ECT, 1e #ECT
8640: b1,1e struct ACT, 1e #ACT
8642: c2,28 struct Saf, 28 #Saf
Code: Select all
word 862a 862d
strct 862e 863d : Y N :Y
strct 863e 863f : Y N :Y V 1
strct 8640 8641 : Y N :Y V 1
strct 8642 8643 : Y N :Y V 4
strct 8644 864f : Y N :Y
Code: Select all
863e: b0,1e struct ECT, 30 #ECT
8640: b1,1e struct ACT, 30 #ACT
8642: c2,28 struct Saf, 10
Code: Select all
strct 863e 863f : Y N :Y F 1
A multiplier would also be nice to avoid untidy 1/ numbers.
Bung on a units option for good measure, again for all SFT
Code: Select all
strct 863e 863f : Y N :Y F 1 U Cº
Or
U PSI
U Hg"
U Advº
U thingamejigs
Code: Select all
866e: 16,c0 struct EVP_Raw, c0 #EVP_Raw = 0x4cc0
8670: 17,4c struct 117, 4c #
Code: Select all
strct 866e 8671 :Y_Y N :Y_Y V 12800
For loading a high byte (low byte is a byte), something like;
Code: Select all
strct bcde bcdf :Y' N :Y V 12800 U Volts
or
strct acde acdf :Y N :Y^ V 12800 U Volts
Thanks for the explanation, Q did not make a difference for the structure I tried against. It had the 0xFF, but I probably camouflaged it with a FILL elsewhere.Did I miss that in the doc ? OK.....