Skip to content

Instantly share code, notes, and snippets.

@punixcorn
Created May 21, 2023 02:30
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/388ddf89b7598ea6f826546970ef5e43 to your computer and use it in GitHub Desktop.
Save punixcorn/388ddf89b7598ea6f826546970ef5e43 to your computer and use it in GitHub Desktop.
info registers
CPU#0
EAX=00000c01 EBX=00000000 ECX=00000002 EDX=00000080
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00007bfe
EIP=00007c15 EFL=00000247 [---Z-PC] CPL=0 II=0 A20=1 SMM=0 HLT=1
ES =1000 00010000 0000ffff 00009300
CS =0000 00000000 0000ffff 00009b00
SS =7c00 0007c000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 00000000
IDT= 00000000 000003ff
CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=0000000000000000 0000000000000000 XMM01=0000000000000000 0000000000000000
XMM02=0000000000000000 0000000000000000 XMM03=0000000000000000 0000000000000000
XMM04=0000000000000000 0000000000000000 XMM05=0000000000000000 0000000000000000
XMM06=0000000000000000 0000000000000000 XMM07=0000000000000000 0000000000000000
(qemu)
code ::
;setting up Disk
mov ah, 0x02; first thing to set
mov al, 25; number of sectors to read
mov dl, [disknum]; the disk type to read 80h for harddisk (using disknum)
;seting up CHS
mov ch, 0h; Cylinder to read ( C )
mov dh, 0h; which Head ( H )
mov cl, 2h; which sector to start reading ( S )
hlt
int 13h; load disk !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment