Skip to content

Commit a77120c

Browse files
U-UC\harvey1U-UC\harvey1
authored andcommitted
added niceness
1 parent 06f4516 commit a77120c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/as4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ unsigned short int findlabel(label **unknownlabels, label **labels, const char *
775775
/* Remove any possible whitespace */
776776
for(i = 0; i < strlen(tempstr); i++)
777777
{
778-
if(isspace(tempstr[i]) != 0)
778+
if(isspace(tempstr[i]))
779779
{
780780
tempstr[i] = '\0';
781781
break;

src/as4.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
/* For instructions HLT, NOP, and CXA MEMLOC is ignored and NOADDR below is used */
3030

3131
/* These are the default memory locations for memory locations when nothing is specified */
32+
#ifdef NICEMISTAKES
33+
#define NOADDR 0x4444
34+
#elif
3235
#define NOADDR 0x0000
33-
/* EOFADDR is not currently used */
34-
#define EOFADDR 0x4444
36+
#endif
3537
#define UNKNOWNADDR 0xFFFF
3638

3739
/* The singular global variable - what line of the assembly file we are on. Helps with error messages */

0 commit comments

Comments
 (0)