Rev | Line | |
---|
[9] | 1 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
---|
| 2 | .sect .text
|
---|
| 3 | .define .sti
|
---|
| 4 | .define .sts
|
---|
| 5 |
|
---|
| 6 | ! #bytes in ecx
|
---|
| 7 | ! address in ebx
|
---|
| 8 | ! save edi/esi. they might be register variables
|
---|
| 9 | .sts:
|
---|
| 10 | pop edx
|
---|
| 11 | sar ecx,1
|
---|
| 12 | jnb 1f
|
---|
| 13 | pop eax
|
---|
| 14 | movb (ebx),al
|
---|
| 15 | jmp edx
|
---|
| 16 | 1:
|
---|
| 17 | sar ecx,1
|
---|
| 18 | jnb 1f
|
---|
| 19 | pop eax
|
---|
| 20 | o16 mov (ebx),ax
|
---|
| 21 | jmp edx
|
---|
| 22 | 1:
|
---|
| 23 | push edx
|
---|
| 24 | mov edx,edi
|
---|
| 25 | mov edi,ebx
|
---|
| 26 | pop ebx
|
---|
| 27 | jmp 1f
|
---|
| 28 | .sti:
|
---|
| 29 | ! only called with count >> 4
|
---|
| 30 | mov edx,edi
|
---|
| 31 | mov edi,ebx
|
---|
| 32 | pop ebx
|
---|
| 33 | sar ecx,2
|
---|
| 34 | 1:
|
---|
| 35 | mov eax,esi
|
---|
| 36 | mov esi,esp
|
---|
| 37 | rep movs
|
---|
| 38 | mov esp,esi
|
---|
| 39 | mov edi,edx
|
---|
| 40 | mov esi,eax
|
---|
| 41 | jmp ebx
|
---|
Note:
See
TracBrowser
for help on using the repository browser.