Changeset 135 for trunk/bootcode/regular/other.asm
- Timestamp:
- Apr 8, 2017, 12:27:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/other.asm
r124 r135 100 100 ENDIF 101 101 102 ; First initialize Variable-Area (everything with NUL) 103 ; We use the start instead of the variables because they could be 'orged' 104 ; to an offset. We want everything after the code to be nullified. 105 mov di, offset sobss 102 ; Clear the BSS from its real start just upto the end of the variables. 103 ; Here 'real start' means from where the BSS begins, which is below 104 ; the point where the first variables are located. The part after 105 ; the variables is not cleared because that is where the old SS:SP is 106 ; stored, which is needed for AirBoot restarts during debugging. 107 mov bx, offset sobss 106 108 mov cx, offset EndOfVariables - offset sobss 107 109 xor ax, ax 108 shr cx, 1 109 inc cx 110 rep stosw 111 110 call FillMemBlock 112 111 113 112 ;
Note:
See TracChangeset
for help on using the changeset viewer.