Skip to content

Instantly share code, notes, and snippets.

@punixcorn
Created May 21, 2023 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punixcorn/0e442dabb5ac509674079af72a9be55b to your computer and use it in GitHub Desktop.
Save punixcorn/0e442dabb5ac509674079af72a9be55b to your computer and use it in GitHub Desktop.
x /32i 0x7C00
(qemu) x /32i 0x7c00
0x00007c00: eb 39 jmp 0x7c3b
0x00007c02: 60 pushaw
0x00007c03: b4 0e movb $0xe, %ah
0x00007c05: eb 00 jmp 0x7c07
0x00007c07: 8a 07 movb (%bx), %al
0x00007c09: 3c 00 cmpb $0, %al
0x00007c0b: 74 05 je 0x7c12
0x00007c0d: cd 10 int $0x10
0x00007c0f: 43 incw %bx
0x00007c10: eb f5 jmp 0x7c07
0x00007c12: 61 popaw
0x00007c13: c3 retw
0x00007c14: f4 hlt
0x00007c15: b4 02 movb $2, %ah
0x00007c17: b0 19 movb $0x19, %al
0x00007c19: 8a 16 75 7d movb 0x7d75, %dl
0x00007c1d: b5 00 movb $0, %ch
0x00007c1f: b6 00 movb $0, %dh
0x00007c21: b1 02 movb $2, %cl
0x00007c23: f4 hlt
0x00007c24: cd 13 int $0x13
0x00007c26: 72 ec jb 0x7c14
0x00007c28: f4 hlt
0x00007c29: 53 pushw %bx
0x00007c2a: bb f5 7c movw $0x7cf5, %bx
0x00007c2d: e8 d2 ff callw 0x7c02
0x00007c30: 5b popw %bx
0x00007c31: f4 hlt
0x00007c32: 53 pushw %bx
0x00007c33: bb 37 7d movw $0x7d37, %bx
0x00007c36: e8 c9 ff callw 0x7c02
0x00007c39: 5b popw %bx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment