Skip to content

Commit

Permalink
rename RISC assembler macro to be more transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Sep 7, 2020
1 parent 84d2da4 commit 2e568ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bld/as/c/asmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#else

#define TXT_MSG_LANG_SPACING (ABS_REF_NOT_ALLOWED - AS_MSG_BASE + 1)
#define TXT_MSG_LANG_SPACING (ABS_REF_NOT_ALLOWED - MSG_AS_BASE + 1)

// No res file to use. Just compile in the messages...
static char *asMessages[] = {
Expand Down Expand Up @@ -91,7 +91,7 @@ bool AsMsgInit( void )
msgShift = _WResLanguage() * TXT_MSG_LANG_SPACING;
if( msgShift >= TXT_MSG_SIZE )
msgShift = 0;
msgShift -= AS_MSG_BASE;
msgShift -= MSG_AS_BASE;
return( true );
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion bld/as/h/msg.rh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define MSG_LANG_SPACING 13000

#define AS_MSG_BASE 1
#define MSG_AS_BASE 1

#if defined( _STANDALONE_ )
#include "msg.gh"
Expand Down
6 changes: 2 additions & 4 deletions bld/as/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ additional_clean = *.c *.h *.re *.y

!include $(owl_dir)/client.mif
!include $(cpp_dir)/client.mif
!ifdef test_inline_as
!include $(as_dir)/client.mif
!endif

# yacc macros
#########################
Expand Down Expand Up @@ -195,13 +193,13 @@ msg.gh : $(as_dir)/h/as.msg $(__MAKEFILES__)
@%make echo_cpp
$(cpp) $(rc_ui_flags) $(cppflags) -D_STANDALONE_ -omsg.tmp $[@
@%make echo_awk
$(awk) -v base=AS_MSG_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. msg.tmp
$(awk) -v base=MSG_AS_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. msg.tmp

asi_msg.gh : $(as_dir)/h/as.msg $(__MAKEFILES__)
@%make echo_cpp
$(cpp) $(rc_ui_flags) $(cppflags) -oasi_msg.tmp $[@
@%make echo_awk
$(awk) -v base=AS_MSG_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. asi_msg.tmp
$(awk) -v base=MSG_AS_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. asi_msg.tmp

wsplice_opts_axp = -kAS_ALPHA
wsplice_opts_mps = -kAS_MIPS
Expand Down

0 comments on commit 2e568ff

Please sign in to comment.