16日目 - naskをLinuxで使えるようにする 2016/4/5

naskをLinuxで使えるようにする

続きです。デバッグ作業を続けます。

少しだけどやっとバイナリが吐けるようになった

$ ./nask_functional_test.sh
main(): nask argc: 3, argv:{./nask, data/01_nasfile.nas, data/01_nasfile.img, }
before_nask_process(): GOLD_getsize(file): 64
before_nask_process(): call nask...
nask(): nask assembly source ===
; test for DB
DB 0xeb, 0x4e, 0x90, 0x48, 0x45, 0x4c, 0x4c, 0x4f
===
nask(): processing assembly source: because of 'src0 < src1'
nask(): buffered pointer bp: ea5b6838
decoder(): in
decoder(): *src == ';': semi-colon is used for comments
put4b(): returned p[0-3]: 0x0f, 0x00, 0x00, 0x00
put4b(): returned p[0-3]: 0x3b, 0x00, 0x00, 0x00
nask(): processing assembly source: because of 'src0 < src1'
nask(): buffered pointer bp: ea5b6838
decoder(): in
decoder(): research: normal format assembly
decoder(): found mnemonic! opcode: DB
decoder(): found mnemonic! param: 0x48
decoder(): found mnemonic! param: 0x01
decoder(): found mnemonic! param: 0x9e
decoder(): itp's first parameter: 0x48
put4b(): returned p[0-3]: 0x31, 0x00, 0x00, 0x00
put4b(): returned p[0-3]: 0x44, 0x00, 0x00, 0x00
nask(): itp-param: OPE_DB
put4b(): returned p[0-3]: 0x00, 0x00, 0x00, 0x00
put4b(): returned p[0-3]: 0x00, 0x00, 0x00, 0x00
nask(): dest0: (null)
before_nask_process(): nask processed list size: 8
before_nask_process(): call LL...
before_nask_process(): LL processed list size: 8
before_nask_process(): call output...
before_nask_process(): output processed list size: 8
nask_main(): nask GOL_retcode: 0
00000000: eb4e 9048 454c 4c4f eb4e 9048 454c 4c4f  .N.HELLO.N.HELLO