aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-04-18 12:14:21 +0100
committerIan C <ianc@noddybox.co.uk>2016-04-18 12:14:21 +0100
commit5dfc8ddb515c17b7c61a6e56d3ce3c57f6da2622 (patch)
tree8670d146ac6c2c4ebdfce7c41857f9a5ed0b16b6 /src/state.c
parenta8131ea5ed00c11517c2cb605834eb103ecac250 (diff)
Fixed problem with zero page detection.
Zero page detection wasn't aggressive enough; by only doing the test on the last past, labels weren't being updated till the final pass.
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 27225e5..83eea97 100644
--- a/src/state.c
+++ b/src/state.c
@@ -23,6 +23,7 @@
*/
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include "global.h"
@@ -174,6 +175,12 @@ void SetNeededPasses(int n)
}
+int GetCurrentPass(void)
+{
+ return pass;
+}
+
+
void SetAddressBank(unsigned b)
{
currbank = b;