Could I run kolibrios on text mode?
Thanks
Could your shell be execute?2) you could run KolibriOS in a text mode by modifying the kernel.But there is no application that works in this mode...
ThanksC:\kolibri\dos2009>fasm launcher.asm
flat assembler version 1.67.38 (1372519 kilobytes memory)
proc32.inc [2]:
$Revision: 750 $
error: invalid name.
Do you know where the bug is?.exit:
mov ah, 08h
int 21h
jmp start
Thanksinclude 'macros.inc'
include 'proc32.inc'
use32
db 'MENUET01'
dd 1
dd start
dd i_end
dd mem
dd mem
dd 0
dd 0
align 4
start:
mov eax, 73
int 0x40
mov [txt_mem], eax
mov edi, eax
mov ecx, 40*25
mov eax, 0x07000700
cld
rep stosd
xor eax, eax
xor esi, esi
xor edi, edi
mov ebx, 1280
mov ecx, 1024
mov edx, 0x01000000
int 0x40
mov ebx,-1 ; row
again:
add ebx, 1 ; row
cmp ebx, 24
je clear
mov eax, 1 ; column
mov esi, msg_hello
pusha
call txt_out
popa
;read key
mov eax,10 ; wait here for event
mcall ; do it
mov eax,2 ; just read it and ignore
mcall ; do it
;end read key
jmp again
mov edi, 480
add edi, [txt_mem]
mov eax, 10
int 0x40
@@:
mov eax, 10
int 0x40
cmp eax, 2
jne @B
int 0x40
cmp eax, 1
je @B
cmp al, 2
je @B
mov al, ah
mov ah, 0x07
stosw
jmp @B
.exit:
mov eax, -1
int 0x40
align 4
txt_out:
mov edi, [txt_mem]
lea edi, [edi+eax*2]
lea ebx, [ebx+ebx*4]
shl ebx, 5
add edi, ebx
mov ax, 0x0700
@@:
lodsb
test al, al
jz .done
stosw
jmp @B
.done:
ret
clear:
mov ebx, -1
clear1: add ebx, 1 ; row
mov eax, 1 ; column
mov esi, msg_white
pusha
call txt_out
popa
cmp ebx, 24
jne clear1
ret
msg_hello db 'Hello world !', 0
msg_white db ' ', 0
f dd 1
i_end:
align 4
txt_mem rd 1
align 16
rb 2048 ;stack
mem:
Users browsing this forum: No registered users and 2 guests