From e52e7921efedbf888b4f7f336218a0a5a19c33c8 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 21 Dec 2019 20:31:42 -0500 Subject: [PATCH] fix bug with SUPER skip page calculations. the page counter is advanced by 1 implicitly when the page finishes. Unless empty, the skip count is thus decreased by 1. --- omf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omf.cpp b/omf.cpp index 8853e1e..89649a4 100644 --- a/omf.cpp +++ b/omf.cpp @@ -116,7 +116,8 @@ public: if (page != _page) { unsigned skip = page - _page; - if (skip > 1) { + if (_count) --skip; + if (skip) { while (skip >= 0x80) { _data.push_back(0xff);