mirror of
https://github.com/ksherlock/merlin-utils.git
synced 2024-12-21 20:29:16 +00:00
kbd - evaluate input.
This commit is contained in:
parent
903a6be697
commit
6024ff6436
7
link.cpp
7
link.cpp
@ -713,10 +713,11 @@ void evaluate(label_t label, opcode_t opcode, operand_t operand) {
|
||||
char *cp = fgets(buffer, sizeof(buffer), stdin);
|
||||
|
||||
if (!cp) return;
|
||||
uint32_t value = 0;
|
||||
// evaluate string. expressions and labels are allowed....
|
||||
|
||||
define(label, value, LBL_KBD);
|
||||
operand_t number_operand(const char *YYCURSOR, bool required);
|
||||
operand_t op = number_operand(cp, true);
|
||||
|
||||
define(label, eval(op), LBL_KBD);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -179,8 +179,8 @@ exit:
|
||||
|
||||
|
||||
|
||||
|
||||
static operand_t number_operand(const char *YYCURSOR, bool required = true) {
|
||||
/* not static - called from link.cpp */
|
||||
operand_t number_operand(const char *YYCURSOR, bool required = true) {
|
||||
|
||||
const char *iter = YYCURSOR;
|
||||
// const char *YYMARKER = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user