| 1 |
// Code generated by command: go run asm.go -out bdoor_386.s -arch 386. DO NOT EDIT. |
| 2 |
|
| 3 |
// +build gc |
| 4 |
|
| 5 |
#include "textflag.h" |
| 6 |
|
| 7 |
// func bdoor_inout(ax uint32, bx uint32, cx uint32, dx uint32, si uint32, di uint32, bp uint32) (retax uint32, retbx uint32, retcx uint32, retdx uint32, retsi uint32, retdi uint32, retbp uint32) |
| 8 |
TEXT ·bdoor_inout(SB), NOSPLIT|WRAPPER, $0-56 |
| 9 |
MOVL ax+0(FP), AX |
| 10 |
MOVL bx+4(FP), BX |
| 11 |
MOVL cx+8(FP), CX |
| 12 |
MOVL dx+12(FP), DX |
| 13 |
MOVL si+16(FP), SI |
| 14 |
MOVL di+20(FP), DI |
| 15 |
MOVL bp+24(FP), BP |
| 16 |
|
| 17 |
// IN to DX from AX |
| 18 |
INL |
| 19 |
MOVL AX, retax+28(FP) |
| 20 |
MOVL BX, retbx+32(FP) |
| 21 |
MOVL CX, retcx+36(FP) |
| 22 |
MOVL DX, retdx+40(FP) |
| 23 |
MOVL SI, retsi+44(FP) |
| 24 |
MOVL DI, retdi+48(FP) |
| 25 |
MOVL BP, retbp+52(FP) |
| 26 |
RET |
| 27 |
|
| 28 |
// func bdoor_hbout(ax uint32, bx uint32, cx uint32, dx uint32, si uint32, di uint32, bp uint32) (retax uint32, retbx uint32, retcx uint32, retdx uint32, retsi uint32, retdi uint32, retbp uint32) |
| 29 |
TEXT ·bdoor_hbout(SB), NOSPLIT|WRAPPER, $0-56 |
| 30 |
MOVL ax+0(FP), AX |
| 31 |
MOVL bx+4(FP), BX |
| 32 |
MOVL cx+8(FP), CX |
| 33 |
MOVL dx+12(FP), DX |
| 34 |
MOVL si+16(FP), SI |
| 35 |
MOVL di+20(FP), DI |
| 36 |
MOVL bp+24(FP), BP |
| 37 |
CLD |
| 38 |
REP |
| 39 |
OUTSB |
| 40 |
MOVL AX, retax+28(FP) |
| 41 |
MOVL BX, retbx+32(FP) |
| 42 |
MOVL CX, retcx+36(FP) |
| 43 |
MOVL DX, retdx+40(FP) |
| 44 |
MOVL SI, retsi+44(FP) |
| 45 |
MOVL DI, retdi+48(FP) |
| 46 |
MOVL BP, retbp+52(FP) |
| 47 |
RET |
| 48 |
|
| 49 |
// func bdoor_hbin(ax uint32, bx uint32, cx uint32, dx uint32, si uint32, di uint32, bp uint32) (retax uint32, retbx uint32, retcx uint32, retdx uint32, retsi uint32, retdi uint32, retbp uint32) |
| 50 |
TEXT ·bdoor_hbin(SB), NOSPLIT|WRAPPER, $0-56 |
| 51 |
MOVL ax+0(FP), AX |
| 52 |
MOVL bx+4(FP), BX |
| 53 |
MOVL cx+8(FP), CX |
| 54 |
MOVL dx+12(FP), DX |
| 55 |
MOVL si+16(FP), SI |
| 56 |
MOVL di+20(FP), DI |
| 57 |
MOVL bp+24(FP), BP |
| 58 |
CLD |
| 59 |
REP |
| 60 |
INSB |
| 61 |
MOVL AX, retax+28(FP) |
| 62 |
MOVL BX, retbx+32(FP) |
| 63 |
MOVL CX, retcx+36(FP) |
| 64 |
MOVL DX, retdx+40(FP) |
| 65 |
MOVL SI, retsi+44(FP) |
| 66 |
MOVL DI, retdi+48(FP) |
| 67 |
MOVL BP, retbp+52(FP) |
| 68 |
RET |
| 69 |
|
| 70 |
// func bdoor_inout_test(ax uint32, bx uint32, cx uint32, dx uint32, si uint32, di uint32, bp uint32) (retax uint32, retbx uint32, retcx uint32, retdx uint32, retsi uint32, retdi uint32, retbp uint32) |
| 71 |
TEXT ·bdoor_inout_test(SB), NOSPLIT|WRAPPER, $0-56 |
| 72 |
MOVL ax+0(FP), AX |
| 73 |
MOVL bx+4(FP), BX |
| 74 |
MOVL cx+8(FP), CX |
| 75 |
MOVL dx+12(FP), DX |
| 76 |
MOVL si+16(FP), SI |
| 77 |
MOVL di+20(FP), DI |
| 78 |
MOVL bp+24(FP), BP |
| 79 |
MOVL AX, retax+28(FP) |
| 80 |
MOVL BX, retbx+32(FP) |
| 81 |
MOVL CX, retcx+36(FP) |
| 82 |
MOVL DX, retdx+40(FP) |
| 83 |
MOVL SI, retsi+44(FP) |
| 84 |
MOVL DI, retdi+48(FP) |
| 85 |
MOVL BP, retbp+52(FP) |
| 86 |
RET |