Use the options parameter provided for command line options. Specifically, for haltnop.

This commit is contained in:
stag019
2014-12-31 13:29:24 -05:00
parent 513d451710
commit 2b839fec37
3 changed files with 5 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
%{
#include <ctype.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -18,8 +17,6 @@
#include "asm/main.h"
#include "asm/lexer.h"
extern bool haltnop;
char *tzNewMacro;
ULONG ulNewMacroSize;
@@ -1264,7 +1261,7 @@ z80_ex : T_Z80_EX T_MODE_HL comma T_MODE_SP_IND
z80_halt: T_Z80_HALT
{
out_AbsByte(0x76);
if (haltnop) {
if (CurrentOptions.haltnop) {
out_AbsByte(0x00);
}
}