Compare commits
No commits in common. "68612c69b07a940208572ee1b7c21ded899dff8a" and "d1d45fb708df527aca14743ff161f29c310e9204" have entirely different histories.
68612c69b0
...
d1d45fb708
@ -74,6 +74,7 @@ static void __str_slice(char* str) {
|
||||
|
||||
char* ntsys_get_arg(ntsys_asm_cache_t save) {
|
||||
char* str = save->cache;
|
||||
printf("Cache : %s\n", save->cache);
|
||||
while (1) {
|
||||
if ((!is_space(str[0])) || str[0] == '\0') {
|
||||
break;
|
||||
@ -95,6 +96,7 @@ char* ntsys_get_arg(ntsys_asm_cache_t save) {
|
||||
save->cache = &str[n_p + t];
|
||||
str[n_p] = '\0';
|
||||
}
|
||||
printf("Switch : %s\n", save->cache);
|
||||
if (str[strlen(str) - 1] == '\n' || str[strlen(str) - 1] == '\r') str[strlen(str) - 1] = '\0';
|
||||
if (strlen(str) == 0) {
|
||||
str = NULL;
|
||||
@ -136,6 +138,7 @@ char* ntsys_get_arg(ntsys_asm_cache_t save) {
|
||||
}
|
||||
}
|
||||
save->string = str;
|
||||
printf("Loading : %s\n", save->string);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
main:
|
||||
push.string "Введите ваше имя: " ; Строка
|
||||
push byte, 0x00
|
||||
push byte 0x00
|
||||
syscall
|
||||
getch:
|
||||
push db, getch
|
||||
push byte, 0x01
|
||||
push db getch
|
||||
push byte 0x01
|
||||
syscall
|
||||
push byte, 0x0A
|
||||
push byte 0x0A
|
||||
neq byte
|
||||
|
||||
@ -55,7 +55,6 @@ int ntsys_asm_from_string(size_t* mempos, char* str, FILE* fp, byte_t cycle, nts
|
||||
ntsys_asm_save_t __save = create_ntsys_asm_save(str);
|
||||
ntsys_asm_cache_t __cache = create_ntsys_asm_cache(__save);
|
||||
ntsys_argument_parser_t parser = create_ntsys_asm_parser(__cache, fp, str, ntsys_asm_table, ntsys_command_count, labels, labels_pos, labels_count, cycle, fsz);
|
||||
/*puts(str);*/
|
||||
return ntsys_run_asm_parser(parser);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user