Issues writing to file in assembly

狂风中的少年 提交于 2019-12-02 14:24:34
MikhaelM

Alright, sorry for this question actually, but I finally figured it out. When I opened the file, I did

mov al, 0

which means I opened the file with read-only access. What I needed to do was

mov al, 1 (write-only access) or 
mov al, 2 (read+write access). 

Sorry for the bother guys, I'm just glad I finally figured it out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!