2019-09-29 14:23:39 +02:00
|
|
|
; Exec the cmdline at SI or 0x81
|
|
|
|
exec_chain:
|
|
|
|
mov si, 0x81
|
|
|
|
exec:
|
|
|
|
push bx
|
2019-10-12 20:33:26 +02:00
|
|
|
sub sp, 0x20
|
2019-09-29 14:23:39 +02:00
|
|
|
mov bx, sp
|
|
|
|
|
|
|
|
call fcb_parse
|
2019-10-12 20:33:26 +02:00
|
|
|
call fcb_open_blockdev
|
|
|
|
mov cx, 5
|
|
|
|
.loop:
|
|
|
|
call fcb_getc
|
|
|
|
loop .loop
|
2019-09-29 14:23:39 +02:00
|
|
|
|
2019-10-12 20:33:26 +02:00
|
|
|
add sp, 0x20
|
2019-09-29 14:23:39 +02:00
|
|
|
pop bx
|
|
|
|
ret
|