Message board for the users of flat assembler.
> DOS > Using Timer ( Urgent!!! )
diegocn 17 Nov 2004, 20:26
Hi, sorry for my poor english
I'am creating an simple multtask OS, I need a way to call a user interrupt
each x milisegunds or microsegunds. Can I resolve this?
I have to redirect the timer IRQ to a INT ???
Please help-me with a simple code
|17 Nov 2004, 20:26||
ASHLEY4 17 Nov 2004, 21:13
Go here: http://512.decard.net/entries/
and get "nanoos2.zip" , it is a multitasking demo that is only 512bytes and fits on boot sector of floppy, with asm code.
Batteries not included, Some assembly required.
|17 Nov 2004, 21:13||
diegocn 17 Nov 2004, 21:21
Ok but the source codes are dificult to understand and generaly uncommented =( Have the http://www.menuetos.org/ too but is complicated
But i try nanoos2.zip...
|17 Nov 2004, 21:21||
diegocn 18 Nov 2004, 00:50
No, I dont understand =(
Plase sendme a simple example...
An simple example, each x milisegunds, the program print the
leter (x) in the screen...
Gratefull for attencion,
|18 Nov 2004, 00:50||
diegocn 18 Nov 2004, 02:09
Yesss, I tried to read the source of nanoos.asm and I know...
Very thanks friend.
But I need one more information, in the nanoOS the 18.2/segund
is the timer default. But I creating an real system and need more
than this. I have to modify the PIT ( Programmable Interval Timer ) ok?
But can I chance the PIT inteval?
I know that the ports is 40h and 43h... 40h is the address of timer
and the 43h is the address of Mode control register.
Very thankssssssss =D
|18 Nov 2004, 02:09||
ASHLEY4 18 Nov 2004, 16:44
|18 Nov 2004, 16:44||
diegocn 18 Nov 2004, 20:23
I programmed and dont function =(((((((
Very thanks for your help I really need
The links dont have effect, its for DOS, and my operating system
dont run in the DOS, is a pure system with loader...
See the code please:
TIMER_IRQN equ (
mov ax, function_timer
mov [0:TIMER_IRQN*4], ax
mov ax, cs
mov [0:TIMER_IRQN*4+2], ax
; code that is executed each 18.2s
this code not have effects =(((
|18 Nov 2004, 20:23||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.