我有一个 Hello World 程序Assembly language
`; ----------------------------------------------------------------------------
; helloworld.asm
;
; This is a Win32 console program that writes "Hello, World" on one line and
; then exits. It needs to be linked with a C library.
; ------------------------------------------------------------- ---------------
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
ret
message:
db 'Hello, World', 10, 0`
我已经使用nasm
并得到了img
文件。当我使用它时,Floppy Controller
它给出了一个错误..
Failed to open Floppy Disk File D:\helloworld.img
the Medium D:\helloworld.img Cannot be used as a requested device type
Result Code: E_FAIL (0x80004005)
Component: Medium
Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)