我在用Ubuntu 12.04和NASM編譯上網本的asm文件。 我嘗試使用以下命令來獲取十六進制:nasm -f elf myFile.asm
。 asm文件適用於PIC16F628A。與NASM編譯PIC程序集
這裏myFile.asm的內容:
而且,錯誤,我得到的一部分...
zeroKey.asm:6: error: parser: instruction expected
zeroKey.asm:7: error: label or instruction expected at start of line
zeroKey.asm:8: error: parser: instruction expected
zeroKey.asm:14: error: parser: instruction expected
zeroKey.asm:15: error: parser: instruction expected
zeroKey.asm:16: error: symbol `DE' redefined
zeroKey.asm:16: error: parser: instruction expected
zeroKey.asm:17: error: symbol `DE' redefined
zeroKey.asm:17: error: parser: instruction expected
zeroKey.asm:18: error: symbol `DE' redefined
zeroKey.asm:18: error: parser: instruction expected
zeroKey.asm:19: error: symbol `DE' redefined
zeroKey.asm:19: error: parser: instruction expected
zeroKey.asm:20: error: symbol `DE' redefined
zeroKey.asm:20: error: parser: instruction expected
zeroKey.asm:21: error: symbol `DE' redefined
zeroKey.asm:21: error: parser: instruction expected
zeroKey.asm:22: error: symbol `DE' redefined
zeroKey.asm:22: error: parser: instruction expected
zeroKey.asm:23: error: symbol `DE' redefined
zeroKey.asm:23: error: parser: instruction expected
zeroKey.asm:24: error: symbol `DE' redefined
zeroKey.asm:24: error: parser: instruction expected
zeroKey.asm:25: error: symbol `DE' redefined
zeroKey.asm:25: error: parser: instruction expected
zeroKey.asm:26: error: symbol `DE' redefined
zeroKey.asm:26: error: parser: instruction expected
zeroKey.asm:27: error: symbol `DE' redefined
zeroKey.asm:27: error: parser: instruction expected
zeroKey.asm:28: error: symbol `DE' redefined
zeroKey.asm:28: error: parser: instruction expected
zeroKey.asm:29: error: symbol `DE' redefined
zeroKey.asm:29: error: parser: instruction expected
zeroKey.asm:30: error: symbol `DE' redefined
zeroKey.asm:30: error: parser: instruction expected
zeroKey.asm:69: error: symbol `Org' redefined
zeroKey.asm:69: error: parser: instruction expected
zeroKey.asm:72: error: parser: instruction expected
zeroKey.asm:77: error: symbol `GOTO' redefined
...
有人可以解釋我怎麼可以編譯和原因有錯誤?
嗯,我不是流利的開發人員因爲我用Java/PHP/Javascript語言開發,所以我失去了該域名,但我會嘗試解釋。實際上,這個asm用於編寫街機安全芯片。它用於檢查遊戲是否正常。街機系統被命名爲「Naomi」,它與netdimm一起用於在GD ROM上引導。 netdimm上有一個16f628a我想編程的PIC是這個PIC。 所以! 我想編譯asm來得到一個.hex文件,然後能夠編程PIC。 把那個PIC放在我的Naomi的netdimm上,然後播放:) – user2591651
然後你需要一個這個PIC的彙編程序;) – m0skit0