微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

fasmg:无法执行二进制文件:Exec格式错误

如何解决fasmg:无法执行二进制文件:Exec格式错误

我正在尝试使用fasmg和ez80-lib为ti 83 Premium ce将ez80程序转换为.8xp,但是在尝试编译时出现以下错误

INCLUDE="include;include/fasmg-ez80" fasmg  DragonLairTI.asm DragonLairTI.8xp
/bin/sh: /c/Program Files (x86)/fasmg/fasmg: cannot execute binary file: Exec format error
make: *** [Makefile:28: DragonLairTI.8xp] Error 126

makefile很简单:

INCLUDES = $(addprefix include/,$(addprefix fasmg-ez80/,ez80.inc commands.alm ez80.alm) ti84pceg.inc)
all: DragonLairTI
unprot: FASMG_FLAGS = -i "protected equ"
unprot: all
$(MV) DragonLairTI.8xp
$(MAKE)
$(ZIP) DragonLairTI.zip DragonLairTI.8xp
%.8xp: %.asm $(INCLUDES) Makefile
INCLUDE="include;include/fasmg-ez80" $(FASMG) $(FASMG_FLAGS) $< $@
include/ti84pceg.inc: include/ti84pce.inc Makefile
include/fasmg-ez80/ti84pce.sed $< > $@
$(SED) --expression='3s/^/element anovaf_vars\n/' --in-place $@
include/ti84pce.inc: include/fasmg-ez80/bin/fetch_ti84pce Makefile
$(MKDIR) include
$(CD) include && fasmg-ez80/bin/fetch_ti84pce

任何想法我该如何解决

如果您想重新创建该错误,我尝试过,可以使用ez80 lib创建者的应用程序:https://github.com/jacobly0/asmhook

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。