Re: Boot sector problems...
- From: Frank Kotler <spamtrap@xxxxxxxxxx>
- Date: Wed, 25 Oct 2006 05:27:17 -0400
spamtrap@xxxxxxxxxx wrote:
Hello all,
I am having very odd, peculaiar and strange problems with my
bootsector. I do not know how to explain the problem since it seems to
be illogical, but when I comment out two lines of source code,
everything works fine.
The lines commented out are:
;Begin ASM Code
cmp bl,0x04
jne cont
;End ASM code
It's actually the "inc bl" that's killin' ya. Without these lines, it gets set back to zero every time. Since the buffer for the sector read is es:bx, we really don't want bx changing... If you use di as the index into prog...
.....
mov bx,0xor di, di
pop siinc di
read_sector_anim:
pusha
mov ah,0x02
mov dh,12
mov dl,51
int 0x10
popa
inc bl
cmp di, 4
jne cont
;cmp bl,0x04xor di, di
;jne cont
mov bl,0
cont:mov al, [prog + di]
pusha
mov ah,0x0A
mov al,[prog+bx]
.....
This seems to bring back the 'e'. Whew!
Best,
Frank
.
- References:
- Boot sector problems...
- From: spamtrap
- Boot sector problems...
- Prev by Date: Re: Boot sector problems...
- Next by Date: Re: how to decide the value of SF
- Previous by thread: Re: Boot sector problems...
- Next by thread: Port 73h?
- Index(es):
Relevant Pages
|