Changeset 60557 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SelFlatCodeToRealMode.asm
- Timestamp:
- Apr 19, 2016 3:01:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SelFlatCodeToRealMode.asm
r60539 r60557 35 35 ;* Global Variables * 36 36 ;********************************************************************************************************************************* 37 extern Bs3X0Text16_EndOfSegment 38 extern Bs3X1Text16_EndOfSegment 37 BS3_EXTERN_DATA16 Bs3RmText16_EndOfSegment 38 BS3_EXTERN_DATA16 Bs3X0Text16_EndOfSegment 39 BS3_EXTERN_DATA16 Bs3X1Text16_EndOfSegment 39 40 40 41 … … 43 44 ; 44 45 BS3_BEGIN_TEXT16 46 BS3_BEGIN_RMTEXT16 45 47 BS3_BEGIN_X0TEXT16 46 48 BS3_BEGIN_X1TEXT16 … … 77 79 78 80 mov ax, dx 79 sub ax, BS3TEXT1681 sub ax, CGROUP16 80 82 cmp ax, 1000h 81 83 jb .bs3text16 82 84 83 85 mov ax, dx 84 sub ax, BS3X0TEXT16 86 sub ax, BS3GROUPRMTEXT16 87 mov bx, Bs3RmText16_EndOfSegment wrt BS3GROUPRMTEXT16 88 add bx, 15 89 shr bx, cl 90 cmp ax, bx 91 jb .bs3rmtext16 92 93 mov ax, dx 94 sub ax, BS3GROUPX0TEXT16 85 95 mov bx, Bs3X0Text16_EndOfSegment wrt BS3GROUPX0TEXT16 86 96 add bx, 15 … … 90 100 91 101 mov ax, dx 92 sub ax, BS3 X1TEXT16102 sub ax, BS3GROUPX1TEXT16 93 103 mov bx, Bs3X1Text16_EndOfSegment wrt BS3GROUPX1TEXT16 94 104 add bx, 15 … … 104 114 ; 105 115 .bs3x1text16: 106 mov dx, BS3 X1TEXT16116 mov dx, BS3GROUPX1TEXT16 107 117 jmp .calc_return 108 118 .bs3x0text16: 109 mov dx, BS3X0TEXT16 119 mov dx, BS3GROUPX0TEXT16 120 jmp .calc_return 121 .bs3rmtext16: 122 mov dx, BS3GROUPRMTEXT16 110 123 jmp .calc_return 111 124 .bs3text16: 112 mov dx, BS3X0TEXT16125 mov dx, CGROUP16 113 126 .calc_return: 114 127 ; Convert the real-mode frame into the low 16-bit base (BX).
Note:
See TracChangeset
for help on using the changeset viewer.