#include <guigui01.h> void G01Main(void) { static const unsigned char cmdusage[] = { 0x86, 0x50, 0x8c, 0x40 }; char * const p0 = g01_bss1a1, *p = p0; int flag = 0; g01_setcmdlin(cmdusage); for (;;) { int c = jg01_inkey3(); if (c == '\r') c = '\n'; g01_putc(c); if (!flag) { if (c == 'q') flag = 1; else *p++ = c; } else { if (c == '\n') break; *p++ = 'q'; *p++ = c; flag = 0; } } *p = '\0'; g01_getcmdlin_fopen_s_3_5(0); jg01_fwrite1f_5(p - p0, p0); }
../z_tools/hijk input hello.nas
../z_tools/hijk ../z_tools/Nasuka hello.nas hello.obj ../z_tools/hijk ../z_tools/obj2bim rul:../z_tools/guigui01/guigui01.rul out:hello.bim stack:0 rlm:hello.rlm ../z_tools/guigui01/g01libc0.lib hello.obj ../z_tools/guigui01/g01libc1.lib ../z_tools/hijk ../z_tools/bim2g01 hello.bim hello.g01 hello.rlm
../z_tools/hijk hello