From 77b629ef03eb3154b47999847276e72447d22282 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 24 Sep 2019 17:30:59 -0500 Subject: update zebra code to store location of MAST bank This commit updates the zebra code to store a pointer to the first MAST bank in the zebraFile struct so that we can jump to it when iterating over the logical records. I had naively assumed based on the documenation in the SNOMAN companion that the first bank in a logical record was guaranteed to be a MAST bank, but that doesn't seem to be the case. This also explains why I was sometimes seeing RHDR and ZDAB banks as the first bank in a logical record. --- src/zebra.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zebra.h') diff --git a/src/zebra.h b/src/zebra.h index 16b120f..25c35ed 100644 --- a/src/zebra.h +++ b/src/zebra.h @@ -145,6 +145,8 @@ typedef struct zebraFile { size_t nwtab; /* Link to first bank. */ uint32_t first_bank; + /* Link to the MAST bank. */ + int32_t mast_bank; /* Number of words from the start of the buffer to the first bank word. */ uint32_t lr_offset; } zebraFile; -- cgit