Вы отмечены как awk
, надеюсь, Python будет вам полезен.
# !/usr/bin/python
import sys
def print_fixed_sequence(filename, line_num=0):
with open(filename, 'rU') as f:
for line in (x.strip() for x in f):
_, f1, f2, data = line.split('\t', 3)
rec_num = int(f2[1:])
while line_num != rec_num:
print(line_num)
line_num += 1
print('\t'.join((str(line_num), f1, f2, data)))
line_num += 1
print_fixed_sequence(sys.argv[1], line_num=795)
795
796
797 47 M797 1 365.0 0.05 0.05 A 0.825
798 47 M798 1 365.0 0.05 0.05 A 0.825
799 47 M799 1 365.0 0.70 0.70 A 0.404
800 47 M800 1 365.0 0.00 0.00 A 0.990
801
802 47 M802 1 365.0 0.29 0.29 A 0.591
803 47 M803 1 365.0 0.12 0.12 A 0.726
РЕДАКТИРОВАТЬ :Еще лучше, вы можете просто загрузить готовый код здесьhttps://github.com/tj90241/n64chain/releasesЧтобы использовать его, вам нужно указать вашему make-файлу использовать каталог инструментов вместо того, чтобы пытаться установить его в ваш каталог usr, поскольку gcc в этом случае сконфигурирован так, чтобы ожидать, что каталог инструментов будет иметь определенный макет.
Я знаю, что это старо, но у меня возникла та же проблема, и я думаю, что нашел решение Вам нужно скачать n64chain и собрать его самостоятельно По этой ссылке есть источник и инструкции о том, как вы можете собрать его самостоятельно.https://github.com/tj90241/n64chain
To build the toolchain, first put your boot code named header.bin on the libn64 folder. Run build-posix64-toolchain.sh in the tools folder on a bash-compatible shell to start building the cross-compiler. Prerequisites are GMP, MPFR and MPC with development headers, build-essential, and bison, which can be installed via apt install build-essential libmpfr-dev libmpc-dev libgmp-dev flex bison on Ubuntu. On Mac, the Xcode command-line tools are also required. The other prerequisites can be installed via the homebrew package manager like so brew install mpfr isl libmpc gmp flex bison && brew link bison --force.
There is also a Windows compatible version build-win64-toolchain.sh that still requires a UNIX-like environment to run.
After the custom GCC build is completed, you should be able to build the helloworld example by running make inside helloworld folder or with make -C helloworld on project root. This will also build the libn64 dependency on the project root. When it is complete you should have a.z64 rom image ready to be run on a Nintendo 64. The same procedure applies for the rdpdemo and threadtest examples.