本文介绍了向凯勒先生问一个问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
感谢您提供的完美代码(BOOT.asm). :):thumbsup:
我有一些问题:
1.如何在C ++编译器(TC ver 3.0或更高版本)而不是Assembly(TASM)中编写此代码. :(
2.当我从boot.asm中创建.bin文件时,我必须使用winhex编辑从boot.asm中创建的boot.exe文件,并从地址0x7E00复制启动扇区所需的bin代码并将其粘贴在一个空的.bin文件中,最后将其复制到软盘中.
为了简化此过程,我开发了一种使用C语言的程序来执行上述过程,并在最后添加0xAA和0x55. :(:((
有什么办法可以直接从Assembly文件或否构建bin文件吗?
3.请给我一个简单的项目,该项目可以轻松地在c ++中构建并剥离以启动它,可以将其复制到HDD驱动器中. :rose:

非常感谢您
Sepehr Hashemi

Hello
Thank you for your perfect code(BOOT.asm) it is working. :) :thumbsup:
I have some questions:
1.How I Can Write this code in C++ compiler(TC ver 3.0 Or higher) instead of Assembly(TASM). :(
2.When I am creating .bin file from boot.asm I must edit ,the boot.exe file that was created from boot.asm ,with winhex and copy the bin code that is needed for boot sector from the address 0x7E00 and paste it in an empty .bin file and finally copy it into flappy disk.
and to simplify this this process I have developed a program with C language that do the above mentioned process and add 0xAA and 0x55 at the end. :( :((
Is there any way to build bin file directly from the Assembly file or NO ?
3.please give me a simple project that is easy build in c++ and strip to boot it can copy file in HDD drive. :rose:

Thank you very much
Sepehr Hashemi

推荐答案



这篇关于向凯勒先生问一个问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 22:16