Tu Ha wrote: ...
It seems I cannot reference to the "char" memory location. Why?
Wrong combination of ".org" and ds register, I think. Either use ".org 0x7C00", and load ds from cs (presumably zero) as you do (you'll have to adjust the .org on the signature, too). Or... leave it at ".org 0" (I assume that's what Gas defaults to), and load ds with 0x7C0. (bios loads us at 0x7C00, which can be represented as either 0000:7C00 or 07C0:0000).
> How can I debug the binary? Bochs? I've never used it, but I understand it'll debug bootsectors... Happy bootin', Frank - : send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: please help me
- From: Tu Ha
- Re: please help me
- References:
- please help me
- From: Tu Ha
- please help me
- Prev by Date: please help me
- Next by Date: Re: please help me
- Previous by thread: please help me
- Next by thread: Re: please help me
- Index(es):