Home
neal_tech [entries|archive|friends|userinfo]
neal_tech

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

hmmph [Aug. 2nd, 2004|12:47 am]
it ain't much, but but it's a start!(250k image for dialup ppl)

the assembly itself wasn't that hard; it was getting the right tools. virtual pc makes it a ton easier. the 8086 assemblers didn't compile under cygwin so i used flat assembler, but i couldn't figure out the syntax to declare character constants in a flat binary mode, which is why i move them character by character. but since moving to video memory requires two bytes per character, one for the character, and one for the character attributes(color, etc.), i still would have had to loop to set the attribute for each byte.

this web page pretty much walks you through everything, so it wasn't so hard. i had to write this program to write the boot program to the disk using raw I/O and set the boot magic numbers(0x55,0xAA at bytes 510,511), which was fairly straightforward. i find it funny that a function name "createfile" in the win32 API basically does all sorts of object opening, including devices, disks, files, memory regions, etc. etc.
LinkLeave a comment

navigation
[ viewing | most recent entries ]

Advertisement