diff options
| author | tlatorre <tlatorre@uchicago.edu> | 2019-09-24 17:30:59 -0500 |
|---|---|---|
| committer | tlatorre <tlatorre@uchicago.edu> | 2019-09-24 17:30:59 -0500 |
| commit | 77b629ef03eb3154b47999847276e72447d22282 (patch) | |
| tree | 10434236fd8a8386e43214f19694ca341acf4ae4 /src/zebra.h | |
| parent | 1e35deac8fc248cb9a2a25e383604fd433480720 (diff) | |
| download | sddm-77b629ef03eb3154b47999847276e72447d22282.tar.gz sddm-77b629ef03eb3154b47999847276e72447d22282.tar.bz2 sddm-77b629ef03eb3154b47999847276e72447d22282.zip | |
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.
Diffstat (limited to 'src/zebra.h')
| -rw-r--r-- | src/zebra.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
