To be honest That is what I use WinImage for since I do not use linux (Windows xp user here)
The code which you provided would compile with nasm and work just fine if I add it to a image (As a bootsector) with WinImage.
That code works fine with XP, I just made an image with it on XP, I don't see why it wouldn't its
all ASM code. And I tried to use win image before, but never had to much luck with that. I always
got what you said happened. black screen and a cursor.
Coddy wrote:That code works fine with XP, I just made an image with it on XP, I don't see why it wouldn't its
all ASM code. And I tried to use win image before, but never had to much luck with that. I always
got what you said happened. black screen and a cursor.
Hmm do you have any idea why it doesnt do what its supposed to do?
I tested my code on real hardware to (2 pc's and 1 laptop) and all show a blinking cursor.
That code is supposed to switch to video mode 13h as you can see and then print the text.
Could someone please help me out with this one?
You can't use WinImage to install a non-FAT boot sector on an image. The boot sector will be overwritten with FAT information. The BIN file made from your ASM source almost works in Bochs, but you can't use mov es, si to initialize ES since there's no guarrantee that SI will be 0. There's also no need to clear AX, CX and BX before setting them.
@Gigasoft:
If Winimage does such a thing how would it be possible for me to create a Image then? Because I cant boot from a file right? (Just the blank bin and point to it)
What do you mean by 'almost' run in bochs?
And by clearing ax, cx and bx was a pretty dumb mistake I realized it short after I scripted it haha but thanks for pointing it out.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]