23 lines
275 B
ArmAsm
23 lines
275 B
ArmAsm
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
||
|
.define __sdget
|
||
|
.sect .text
|
||
|
__sdget:
|
||
|
mov ax,3368
|
||
|
push bp
|
||
|
mov bp,sp
|
||
|
push si
|
||
|
push di
|
||
|
mov di,10(bp)
|
||
|
mov si,8(bp)
|
||
|
mov cx,6(bp)
|
||
|
mov bx,4(bp)
|
||
|
call syscal
|
||
|
pop di
|
||
|
pop si
|
||
|
pop bp
|
||
|
jae 1f
|
||
|
mov (_errno),ax
|
||
|
mov ax,-1
|
||
|
1:
|
||
|
ret
|