Search Results

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: mathematician ; Forum: Assembly and child forums
Forum: Assembly Sep 15th, 2009
Replies: 22
Views: 976
Posted By mathematician
He says that he can print the first character. I suppose it is possible that the direction flag is set when the boot sector gets control, so instead of pointing to the e after the H has been printed,...
Forum: Assembly Sep 14th, 2009
Replies: 22
Views: 976
Posted By mathematician
I was using the syntax used by C and some assemblers.




In the case of a boot sector cs=0 and ip=7c00h (always).
Forum: Assembly Sep 14th, 2009
Replies: 22
Views: 976
Posted By mathematician
Since I use MASM it recognises 7c00h, but if I used NASM it would recognise 0x7c00.
Forum: Assembly Sep 14th, 2009
Replies: 22
Views: 976
Posted By mathematician
I'm not clobbering anything. The boot sector always gets loaded at an absolute address of 7c00h, which means that the ds register must contain zero if the code is org'd at 7c00h.
Forum: Assembly Sep 14th, 2009
Replies: 22
Views: 976
Posted By mathematician
org 0x7c00

cli ;disable hardware interrupts
cld ;clear direction flag
xor ax,ax ...
Forum: Assembly Sep 13th, 2009
Replies: 22
Views: 976
Posted By mathematician
You could try initialising the ds register with a value of zero. It might be a good idea to set up a stack as well.


cli
xor ax,ax
mov ds,ax
mov ss,ax
mov sp, 0x7c00
Forum: Assembly Jun 8th, 2007
Replies: 4
Views: 2,865
Posted By mathematician
I tried typing it in to debug, and it worked ok for me.
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC