Code: Select all
in dx, al
jmp $+2
jmp $+2
jmp $+2
; Something
Code: Select all
in dx, al
jmp $+2
jmp $+2
jmp $+2
; Something
Careful. Most tutorials have bugs.QB114514 wrote:I have following a tutorial to make my own OS.
It's not really after the IN instruction, it's between the IN instruction and the next I/O instruction.QB114514 wrote:In the tutorial I see that there are some delays after each in instruction like this:
It probably doesn't matter. Delays between I/O instructions are usually only needed on extremely old PCs, and the "jmp $+2" instruction only adds a delay on ancient (i386 and older) CPUs.QB114514 wrote:I'm confused with why does it matter. Can you help me know it?