Click here to Skip to main content
15,889,216 members

Comments by AshakiranBhatter (Top 2 by date)

AshakiranBhatter 21-Aug-13 14:28pm View    
I just started liking AT&T syntax of GNU Assembler. Thats why I am giving it a try. JB sure does work and thank you for your help clearing my doubts. :)
AshakiranBhatter 21-Aug-13 14:05pm View    
I know its not about real mode but the problem seems to be stranger to me.

I tried the following code and it even gives the wrong result.

movw $0xffff, %ax
.begin:
cmpw $16, %ax
jl .endnow
movb $'n', %al
movb $0x0e, %ah
int $0x10
jmp .begin

.endnow:
movb $'y', %al
movb $0x0e, %ah
int $0x10


result: y

the result should be infinite loop of n's