- db 0BFh ; opcode of mov di, mem16\r
- dw PmodeOffsetLocation ; mov di, PmodeOffsetLocation\r
- db 66h, 8Bh, 05h ; mov eax,dword ptr [di]\r
- db 8Bh, 0F8h ; mov di, ax\r
- db 83h, 0EFh,06h ; sub di, 06h\r
- db 66h, 03h, 0C3h ; add eax, ebx\r
- db 66h, 89h, 05h ; mov dword ptr [di],eax\r
+ db 0BEh ; opcode of mov si, mem16\r
+ dw PmodeOffsetLocation ; mov si, PmodeOffsetLocation\r
+ db 66h, 8Bh, 04h ; mov eax, [si]\r
+ db 0BEh ; opcode of mov si, mem16\r
+ dw CodeSegmentLocation ; mov si, CodeSegmentLocation\r
+ db 66h, 8Bh, 14h ; mov edx, [si]\r
+ db 89h, 0C7h ; mov di, ax\r
+ db 83h, 0EFh, 02h ; sub di, 02h\r
+ db 89h, 15h ; mov [di], dx\r
+ db 83h, 0EFh, 04h ; sub di, 04h\r
+ db 66h, 01h, 0D8h ; add eax, ebx\r
+ db 66h, 89h, 05h ; mov [di], eax\r
+\r
+ db 0BEh ; opcode of mov si, mem16\r
+ dw DataSegmentLocation ; mov si, DataSegmentLocation\r
+ db 66h, 8Bh, 14h ; mov edx, [si]\r