|
Revision 4cc0c3ab6541753b89cba58c345c0cae8c7d151d, 226 bytes
(checked in by H. Peter Anvin <hpa@…>, 3 years ago)
|
|
core: rename .text, .data and .bss to .text16, .data16, .bss16
Rename the .text, .data and .bss sections to .text16, .data16 and
.bss16, in anticipation of being linked with compiler-generated 32-bit
code, which presumably would like to use the standard section names.
Signed-off-by: H. Peter Anvin <hpa@…>
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | ; |
|---|
| 2 | ; strcpy: Copy DS:SI -> ES:DI up to and including a null byte; |
|---|
| 3 | ; on exit SI and DI point to the byte *after* the null byte |
|---|
| 4 | ; |
|---|
| 5 | section .text16 |
|---|
| 6 | |
|---|
| 7 | strcpy: push ax |
|---|
| 8 | .loop: lodsb |
|---|
| 9 | stosb |
|---|
| 10 | and al,al |
|---|
| 11 | jnz .loop |
|---|
| 12 | pop ax |
|---|
| 13 | ret |
|---|