add SEG command (does nothing, yet)

This commit is contained in:
Kelvin Sherlock 2019-12-14 16:16:05 -05:00
parent 50822a7dea
commit b6e397b959
3 changed files with 8 additions and 1 deletions

View File

@ -816,6 +816,12 @@ void evaluate(label_t label, opcode_t opcode, const char *cursor) {
define(label, number_operand(cursor, local_symbol_table), LBL_GEQ);
break;
case OP_SEG: {
/* OMF object file linker - set the object file seg name */
std::string name = label_operand(cursor);
break;
}
case OP_FAS:
/* fast linker, only 1 file allowed */
fas = true;

1
ops.h
View File

@ -36,3 +36,4 @@ x(CMD)
x(ZIP)
x(IMP)
x(PFX)
x(SEG)

View File

@ -222,7 +222,7 @@ std::string path_operand(const char *YYCURSOR, int flags) {
}
// don't allow leading quotes, eof, or comment chars
. [^ \t]* {
[^ \t\x00;*'"][^ \t\x00]* {
rv = std::string(iter, YYCURSOR);
goto exit;
}